Case Assignment Rule in Salesforce

In this Salesforce tutorial, we will learn the case assignment rule in salesforce . In addition to this, we will also see step-by-step how to create case assignment rules in salesforce Lightning and Salesforce Classic.

While working in an organization that uses salesforce, I got a requirement where I need to assign cases to a specific team and team member. So, to fulfill this requirement, we create a salesforce case assignment rule.

If you want to learn How to create case assignment rules in Salesforce Lightning and Salesforce Classic , you have come to the right place.

The following are the topics that we will cover in this salesforce tutorial:

  • Case assignment rule in Salesforce
  • Component of case assignment rule in Salesforce
  • Fields used in case assignment rule in Salesforce
  • How to create case assignment rule in Salesforce Lightning
  • How to create case assignment rule in Salesforce Classic

Table of Contents

Case assignment in Salesforce is the process of allocating a case to a certain team or teammate within an organization. A case assignment can be assigned in a variety of ways, either manually or in accordance with assignment criteria.

But, in this article, we will only focus on the case assignment rule in salesforce. So, a case assignment rule in salesforce is a process that automatically assigns cases to the appropriate team or teammate based on specific criteria.

This help in handling the case management procedure, speeding up responses, and boosting customer satisfaction. Also, it aids in enhancing both general effectiveness and customer service.

With this, we got an overview of the case assignment rule in salesforce. Now, we will move forward and understand its main components.

In Salesforce, the case assignment rule revolved around two main components such as case rule and case criteria.

  • Case Rule: A case rule defines one or more than one condition that must meet to be assigned to a specific user. We can add as many rule entries as we want to a single assignment rule.
  • Case Criteria: Case criteria are the conditions that are based on different factors such as case origin, status, type, etc.

In conclusion, the case assignment rule matches the case criteria first and then the case rule assigns the case to the appropriate user or queue.

With this, we got an overview of how the case assignment rule works in salesforce. Now, we will move ahead and try to understand the common fields used in the case assignment rule.

Some of the common fields used in Case Assignment Rules are given below:

  • Order: This field is used to specify the order of the case entries in which we want to execute the case rule.
  • Criteria: This field is used to specify the case condition that must meet with the case to whom it is assigned.
  • User: This field specifies the salesforce user or team to whom the case is assigned.
  • Email Template: This field is used to specify the email template that we want to use to send emails.
  • Predefine case team: This field defines predefined case teams to add to the case.
  • Replace existing predefine case team: This field replaces the existing predefined case team with a specified case team if the case condition meets.

With this, we have learned some common fields used in the salesforce case assignment rule. Now, we will move further and learn how to create case assignment rules in Salesforce Lightning .

Read: How to remove new event button from case object in salesforce

Here are the steps to create a case assignment rule in Salesforce Lightning:

Step 1:  Log in to your Salesforce account and go to  Setup .

Step 2:  In the Quick Find box, type  Assignment Rules , then select  Case Assignment Rules located under Services.

How to create case assignment rule in Salesforce Lightning

Step 3:  Click  New  to create a new case assignment rule.

How to create case assignment rule in Salesforce Lightning Example

Step 4:  Enter a  Rule Name  for the case rule. Here, I create the Rule “High Priority Case” .

Step 5:  Activate the rule by clicking the  Activate  button. Activating this rule will deactivate the current case assignment rule automatically as at one time only one rule is activated.

Step 6:  Click  Save  to save the rule.

create case assignment rule in Salesforce Lightning

Step 7:  Select the  Rule Name  and open it to add case assignment rules.

Step 8:  Click  New  to create multiple rule entries under this rule.

Step 9:  Set the  Rule Order  in which these rule entries will process.

Step 10:  Define the criteria that will trigger the rule. This can include fields like case origin, cause status, and cause type. Here, I set the criteria for “Case Priority equal to High” .

Step 11: Specify the user or queue to whom we assign the case when a case meets the criteria. Here, I assign it to the “ User “.

Step 12: Optionally, we can also choose the email template for the case assignment rule.

Step 13: In addition to this, we can select predefined case teams and also replace existing predefined case teams.

Step 14: Click  Save  to save the case assignment rule.

Step 15:  Test the rule by creating a test case that meets the criteria, and ensures that it is assigned correctly.

Note: Always check the checkbox “Assign using active assignment rule” to assign newly created case according to case assignment rule.

How to create case assignment rule using Salesforce Lightning

Once our case assignment rule is created and tested, Salesforce will automatically assign incoming cases based on the criteria we’ve defined.

create case assignment rule using Salesforce Lightning

With this, we learned to  create the case assignment rule in Salesforce Lightning . Now, we will move and learn to create the case assignment rule in Salesforce Classic .

Read How to Enable Email to Case in Salesforce

Here are the steps to create a case assignment rule in Salesforce Classic:

Step 1:  Log in to your Salesforce Classic account. Click on  Avtar  and then select  Switch to Salesforce Classic .

How to create case assignment rule in Salesforce Classic

Step 2:  Go to the  Setup  menu in Salesforce Classic and click on the  Build  section.

Step 3:  Click on the  Case  object under the  Customize  section.

Step 4:  Then, click on  Case Assignment Rules .

create case assignment rule in Salesforce Classic

Step 5:  Click  New  to create a new case assignment rule.

create case assignment rule in Salesforce Classic Example

Step 6:  Enter a  Rule Name . Here, I create a rule with the name Case Number Assignment .

Step 7:  If we want to activate the rule click on the  Activate  button.

Step 8:  Click  Save  to save the rule.

How to create case assignment rule using Salesforce Classic

Step 9:  In order to add case assignment rules, select the  Rule Name .

Step 10:  Click  New  to create new rule entries.

How to create case assignment rule using Salesforce Classic Example

Step 11:  Specify the  Rule Order  in which the rule should be evaluated if we have multiple rules.

Step 12: Define the criteria that the lead record must satisfy in order for the rule to be triggered. Any field on the lead record can be used to define your criteria. Here, I set criteria Case Number should be greater or equal to 00001001.

Step 13: Define the actions that should be taken when a case meets the rule criteria such as assigning the case to User, Queue, and Partner User. Here, I define an action that case should be assigned to Case Queue.

Step 14: As an additional option, we can select the email template to whom we want to assign the case assignment rule.

Step 15: We also have the option of choosing predefined case teams or changing the current predefined case teams on the case.

Step 16: To save the case assignment rule, click Save .

Step 17: By developing a test case that meets the requirement, we can confirm that our rule is functioning correctly.

create case assignment rule using Salesforce Classic

With this, we learned how to create the case assignment rule in Salesforce Classic.

You may also like to read the following Salesforce tutorials.

  • How to Delete a Case in Salesforce
  • How to Close a Case in Salesforce
  • How to Create a Case in Salesforce

In conclusion, Salesforce’s case assignment rules let us automatically allocate incoming cases to the right sales team members or queues based on predefined criteria.

Both Salesforce Classic and Salesforce Lightning provide a simple procedure to create a case assignment rule which will help our sales team work more effectively and efficiently.

In addition to this, the following are the topics that we have discussed:

Bijay Kumar

I am Bijay Kumar, the founder of SalesforceFAQs.com. Having over 10 years of experience working in salesforce technologies for clients across the world (Canada, Australia, United States, United Kingdom, New Zealand, etc.). I am a certified salesforce administrator and expert with experience in developing salesforce applications and projects. My goal is to make it easy for people to learn and use salesforce technologies by providing simple and easy-to-understand solutions. Check out the complete profile on About us .

Market Business News

Best Practices for Optimizing Case Assignment Rules in Salesforce

Salesforce is a powerful customer relationship management (CRM) platform that helps businesses manage various aspects of customer interactions. One critical aspect of customer support is case management in Salesforce , where efficient case assignment rules play a vital role. Optimizing these rules can significantly enhance the effectiveness and efficiency of handling customer inquiries and issues.

Understanding Salesforce assignment rules

Salesforce assignment rules govern the distribution of incoming cases to the appropriate agents or teams. These rules ensure that each case is routed to the most suitable person for prompt resolution. Salesforce queues further facilitate this distribution by acting as virtual storage areas for cases before they are assigned.

There are two types of assignment rules in Salesforce:

  • Salesforce Lead Assignment Rules primarily focus on distributing new leads among sales representatives based on predefined criteria such as geography, lead source, or lead score. 
  • Case Assignment Rules are responsible for Salesforce case distribution. These rules play a pivotal role in the realm of customer support by directing incoming Salesforce support cases to agents or teams equipped with the expertise to resolve specific issues. 

As organizations strive to provide seamless experiences for both potential customers and existing clients, mastering these assignment rule types becomes crucial for optimizing customer interactions and nurturing lasting relationships.

The need for optimization

Default assignment rules might not account for specific business needs, leading to uneven case distribution, longer resolution times, and potential customer dissatisfaction. Optimizing Salesforce rules address these issues by ensuring equitable distribution, maximizing agent expertise, and expediting case resolution.

Best practices for Salesforce assignment

  • Prioritizing cases . Categorize cases based on urgency or complexity to assign high-priority cases to experienced agents, ensuring quick resolutions.
  • Efficient assignment techniques . Implement round-robin assignment or load-based distribution to evenly distribute cases among available agents, preventing bottlenecks.
  • Role-based vs. direct assignment. Choose between role-based case assignment, where cases are directed to specific teams or direct assignment, where cases go to individual agents based on expertise.

Advanced Salesforce assignment techniques

  • Multi-criteria case assignment. Combine multiple factors such as case type, priority, and customer tier for more accurate case routing.
  • Automated case assignment. Leverage Salesforce automation tools like Process Builder and Flow to automate case assignments based on predefined criteria.
  • Customized queues. Tailor Salesforce queues to match specific business units or case types, improving case categorization and routing.

Streamlining Salesforce case routing

Salesforce case routing logic.

Understanding Salesforce case routing logic is fundamental for ensuring that customer inquiries and issues are directed to the right personnel with the expertise to address them effectively. The case routing process involves a sophisticated interplay of various factors, such as queue membership, agent skills, workload, and availability. Salesforce’s intelligent algorithms consider these variables to determine the most suitable destination for each case, maximizing the chances of swift resolution. 

Caseload balancing

Balancing caseloads in Salesforce goes beyond equal case distribution among agents. This strategic approach boosts customer service quality and agent efficiency. Preventing overload for some and underutilization for others, it curbs burnout and enhances job satisfaction. 

Even workloads lead to swift responses, faster resolutions, and increased customer contentment. Moreover, balanced caseloads aid managers in spotting trends, optimizing resource allocation, and refining processes. This practice optimizes operations and fosters a cooperative, productive support environment.

Case escalation and reassignment strategies

Case escalation and reassignment strategies are vital for effective customer support. Escalation involves transferring cases to experienced agents or supervisors to address complex issues promptly. Case reassignment in Salesforce redirects cases to different teams or agents for specialized handling. 

These strategies prevent delays, ensure timely resolutions, and uphold customer satisfaction. With clear escalation and reassignment criteria, organizations enhance their support processes, allocate resources efficiently, and build a reputation for adeptly managing diverse customer concerns.

Configuring and customizing assignment rules

Salesforce rule configuration instructions.

  • Access setup. Log in to your Salesforce account and navigate to the Setup menu located in the top-right corner of the screen.
  • Search for assignment rules: In the Quick Find box, type “Assignment rules” and select what Assignment Rules you need to configure: Lead Assignment Rules or Case Assignment Rules. 
  • Create a new rule. Click on the “New Assignment Rule” button to start configuring a new rule.
  • Define Salesforce rule criteria. Give your rule a descriptive name and set the rule entry criteria. This includes conditions like case origin, type, priority, or other custom criteria that determine how cases are assigned.

case owner (using assignment rule) salesforce

  • Specify rule actions. Determine what happens when cases meet the specified criteria. You can assign cases to specific users, queues, or use other automation processes.
  • Configure rule entry order. If you have multiple assignment rules, specify the order in which they’re evaluated. This is important when cases could meet criteria for more than one rule.

case owner (using assignment rule) salesforce

  • Activate the rule. Once configured, activate the assignment rule to make it live and start directing cases accordingly.

You can also integrate Salesforce workflow rules to automate follow-up actions after case assignments, enhancing customer communication.

Enhancing case management efficiency: Salesforce support cases best practices

  • Utilize case templates. Expedite responses by employing predefined case templates for common issues, ensuring consistent and swift resolutions.
  • Leverage macros. Enhance agent productivity with macros that automate multiple actions, reducing manual tasks and accelerating case handling.
  • Opt for case cloning. Save time on data entry by cloning similar cases, streamlining the process of creating and managing new cases.
  • Update Knowledge bases . Maintain accurate and current knowledge bases to empower agents with reliable information, enabling efficient issue resolution.
  • Engage collaboration tools. Employ platforms like Chatter to encourage agent collaboration, fostering knowledge sharing and teamwork for complex cases.
  • Notify agents of new assignments promptly and emphasize the importance of case ownership for accountability.

Optimizing case assignment rules in Salesforce is indispensable for efficient case handling. By understanding the fundamentals, implementing best practices, and embracing advanced techniques, businesses can ensure equitable case distribution, expedite resolutions, and enhance customer satisfaction. A well-optimized case assignment system ultimately streamlines support processes and contributes to the overall success of the customer support function.

Advanced Communities is your best partner when it comes to configuring your Salesforce instance or developing a Salesforce Experience Cloud site. In case of any questions feel free to reach out to get professional support when you really need it. 

You may be interested in: Maximizing ROI with Salesforce: A Case Study

Share this:

  • Renewable Energy
  • Artificial Intelligence
  • 3D Printing
  • Financial Glossary

CLIMB

10 Salesforce.com Case Assignment Rules Best Practices

Salesforce.com's assignment rules are a powerful tool, but they can also be complex. Here are 10 best practices to follow when using them.

case owner (using assignment rule) salesforce

Salesforce.com is a powerful customer relationship management (CRM) platform that allows organizations to manage customer data, track customer interactions, and automate processes. One of the most important features of Salesforce.com is the ability to assign cases to the appropriate team or individual.

Case assignment rules are the key to ensuring that cases are assigned to the right people in a timely manner. In this article, we will discuss 10 best practices for creating and managing Salesforce.com case assignment rules.

1. Utilize the Assignment Rules Hierarchy

The Assignment Rules Hierarchy is a way to organize and prioritize the order in which Salesforce.com Case Assignment Rules are evaluated. This ensures that the most important rules are evaluated first, allowing for more efficient case assignment.

When creating an Assignment Rule, users can specify whether it should be evaluated before or after other rules. If multiple rules have the same priority, they will be evaluated in the order they were created. By utilizing the Assignment Rules Hierarchy, users can ensure that their most important rules are evaluated first.

Additionally, when using the Assignment Rules Hierarchy, users can create rules with different criteria and assign them different priorities. For example, if a user wants to assign cases based on product type first, then by region second, they can set up two separate rules with different priorities. This allows for more flexibility and control over how cases are assigned.

2. Use Roles and Profiles to Assign Cases

Roles and Profiles are a great way to assign Cases because they allow for granular control over who can access what. By assigning Roles and Profiles, you can ensure that only the right people have access to the right Cases. For example, if you want to make sure that only certain users can view or edit sensitive customer information, you can use Roles and Profiles to restrict access to those users.

Using Roles and Profiles also makes it easier to manage Case Assignment Rules. Instead of having to manually assign each Case to an individual user, you can set up Roles and Profiles so that all Cases assigned to a particular Role or Profile will automatically be routed to the appropriate user. This saves time and ensures that Cases are always assigned to the correct person.

Additionally, using Roles and Profiles allows you to easily add new users to your system without having to manually update Case Assignment Rules. When a new user is added to a Role or Profile, they will automatically be given access to any Cases associated with that Role or Profile. This eliminates the need to manually update Case Assignment Rules every time a new user is added.

3. Utilize Queues for Case Assignment

Queues are a great way to assign cases because they allow for multiple users to be assigned the same case. This is especially useful when dealing with high-volume customer service requests, as it allows for more efficient and effective management of those requests. Additionally, queues can be used to prioritize cases based on their urgency or importance, ensuring that the most important cases get addressed first.

To use queues for case assignment, you’ll need to create a queue in Salesforce.com and add members to it. You can then set up Case Assignment Rules to automatically assign cases to the queue. This ensures that all incoming cases are routed to the right people quickly and efficiently. It also makes it easier to track which cases have been assigned and who is responsible for them.

4. Leverage Apex Triggers for Complex Assignment Logic

Apex Triggers allow for more complex logic than the standard Case Assignment Rules, such as assigning cases to specific queues based on criteria like case type or customer location. This is especially useful when dealing with large numbers of cases and multiple assignment rules that need to be applied in a certain order. Apex Triggers also provide an easy way to customize the assignment process by allowing developers to write custom code to handle any special requirements. Additionally, Apex Triggers can be used to automate the assignment process, which eliminates manual intervention and ensures that cases are assigned quickly and accurately. Lastly, Apex Triggers can be used to integrate Salesforce.com Case Assignment Rules with other systems, such as ERP or CRM applications, making it easier to manage data across multiple platforms.

5. Create a Default Rule for Unassigned Cases

Creating a Default Rule for Unassigned Cases ensures that all cases are assigned to someone, even if they don’t meet the criteria of any other rule. This is important because it prevents cases from slipping through the cracks and being left unassigned.

To create a Default Rule for Unassigned Cases, go to Setup > Customize > Cases > Case Assignment Rules. Click “New” and enter a name for the rule. Set the order number to be higher than any other rules you have created. Then set the criteria so that it will always evaluate as true (e.g., “Case: Type equals Any”). Lastly, assign the case to an appropriate user or queue.

6. Automate Case Escalation with Workflow

Automating Case Escalation with Workflow allows for cases to be automatically escalated when they are not addressed within a certain time frame. This ensures that no case is left unresolved and customers receive timely responses.

Workflows can be set up in Salesforce.com to monitor the age of open cases, and if they exceed a specified amount of time, then an automated action will occur. This action could include sending an email notification to the assigned user or group, reassigning the case to another user or group, or creating a task for someone to follow up on the case. The workflow can also be configured to send out reminders at regular intervals until the case is resolved.

This automation helps ensure that all cases are handled promptly and efficiently, which leads to better customer service and satisfaction. Automating Case Escalation with Workflow also reduces manual effort and saves time by eliminating the need to manually check each case for resolution status.

7. Allow Users to Self-Assign Cases

Self-assignment allows users to take ownership of cases they are best suited to handle. This helps ensure that the right person is assigned to each case, which can help improve customer satisfaction and reduce resolution time. It also gives users more control over their workloads, allowing them to prioritize tasks based on their own expertise and availability.

To enable self-assignment, admins should create a rule with an assignment type of “User” and assign it to all users who need access to the case. The user will then be able to select themselves as the owner when creating or editing a case. Admins can also set up criteria for self-assignment, such as assigning cases only to users in certain roles or territories. This ensures that cases are routed to the most appropriate user while still giving users the freedom to choose.

8. Make Sure Your Rules are Well Documented

Documenting your rules helps ensure that everyone in the organization understands how cases are assigned and why. This is especially important when multiple users or teams are involved in case assignment, as it ensures that all parties understand their roles and responsibilities. Additionally, documenting your rules can help you identify any potential issues with the process before they become a problem.

When documenting your Salesforce.com Case Assignment Rules, make sure to include details such as who is responsible for assigning cases, what criteria should be used to assign cases, and which team members should be notified of new assignments. You should also document any changes made to the rules over time so that everyone is aware of the current version. Additionally, consider creating a flowchart or diagram to visually represent the process. This will make it easier for everyone to understand the rules and follow them correctly.

9. Monitor Performance of your Rules

Monitoring the performance of your rules is important because it allows you to identify any issues with the rule, such as incorrect criteria or an inefficient assignment process. This helps ensure that cases are being assigned correctly and efficiently, which can help improve customer satisfaction and reduce case resolution time.

To monitor the performance of your rules, Salesforce provides a number of tools. The Case Assignment Rules report shows how many cases were assigned by each rule over a given period of time. You can also use the Rule Performance dashboard to view the average time taken for each rule to assign a case. Additionally, the Assignment Debug Logs provide detailed information about the assignment process, including the criteria used to assign the case and the user who was assigned the case. By using these tools, you can quickly identify any issues with your rules and take corrective action if necessary.

10. Test, Test, Test!

Testing is important because it allows you to ensure that the rules are working as expected and that they are assigning cases correctly. It also helps identify any potential issues or conflicts with other rules, which can be addressed before they become a problem.

Testing should include creating test cases and running them through the assignment rules to make sure they are being assigned properly. This can be done manually by creating test cases in Salesforce and then running them through the assignment rules, or it can be automated using an automation tool such as Selenium. Automated testing is especially useful for larger organizations with complex assignment rules.

It’s also important to periodically review the assignment rules to make sure they are still valid and up-to-date. This includes checking for any changes in business requirements or processes that may require updating the rules. Additionally, if there have been any changes to the data model, such as adding new fields or objects, these should be tested to make sure the assignment rules are still functioning correctly.

10 Singular Value Decomposition (SVD) Best Practices

10 perl global variable best practices, you may also be interested in..., 10 teradata sql assistant best practices, 10 react api calls best practices, 10 angular unit testing best practices, 10 project management folder structure best practices.

Why assignment rule triggered even after the Assignment rule is deactivated/Removed?

Even after deleting the assignment rule why assignment rule triggered.

Company Logo

Cookie Consent Manager

General information, required cookies, functional cookies, advertising cookies.

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings. Privacy Statement

Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.

Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.

Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.

Cookie List

  • Guide to Salesforce
  • Case Management
  • Manage Cases
  • Cases from Customer Emails
  • Case from your Site
  • Assigning your Case
  • Service Cloud
  • Sales Cloud
  • Community Cloud

Defining Assignment Rules

Creating case queues, choosing a default case owner.

Make sure your comments are assigned to a specific support representative, although none of the assignment rules apply, for chossing of default owner. The default case owner can be a user or a queue. 1. From Setup, enter support settings in Quick Find Box then select Support Settings. 2. Click Edit. 3. Choose user or queue. 4. Select the user or queue name you want to be the owner of a case if no assignment rules apply. 5. Click Save.

Creating a Case Assignment Rule

Using apex:repeat in Visualforce Page

System.NullPointerException: Attempt to de-reference a null object

Assignment rules in Salesforce

  • By Ankush Dureja in salesforce

December 6, 2018

Page Contents

What are assignment rules in salesforce ?

Assignment rules in salesforce are used to automatically assign lead or Case to owner( User Or Queue ). Assignment rule is used to automate owner assignment on Case and Lead based on conditions on Case or Lead. For example, there could on lead assignment rule for web-generated leads and one case assignment rule for the holiday use.

Types of assignment rules

There are two type of assignment rules

Lead Assignment Rules

Case assignment rules.

Specify how leads are assigned to users or queues as they are created manually, captured from the web, or imported via the Data Import Wizard.

Determine how cases are assigned to users or put into queues as they are created manually, using Web-to-Case, Email-to-Case, On-Demand Email-to-Case, the Self-Service portal, the Customer Portal, Outlook, or Lotus Notes.

Create or Setup assignment rules

  • From Setup, enter Assignment Rules in the  Quick Find  box, then select either  Lead Assignment Rules  or  Case Assignment Rules .
  • Choose  New , and then give the rule a name. Specify whether you want this to be the active rule for leads or cases created manually and via the web and email. Then click  Save .
  • To create the rule entries, click  New . For each entry, you can specify:
  • Order : Sets the order in which the entry will be processed in the rule, for example, 1, 2, 3. Salesforce evaluates each entry in order and tries to match the criteria of the entry. As soon as a match is found, Salesforce processes the item and stops evaluating the rule entries for that item. If no match is found, the item is reassigned to either the default Web-to-Lead owner, the administrator doing a lead import, or the default case owner.
  • Choose criteria are met and select the filter criteria that a record must meet to trigger the rule.For example, set a case filter to Priority equals High if you want case records with the Priority field marked High to trigger the rule. If your organization uses multiple languages, enter filter values in your organization’s default language. You can add up to 25 filter criteria, of up to 255 characters each. When you use picklists to specify filter criteria, the selected values are stored in the organization’s default language. If you edit or clone existing filter criteria, first set the Default Language on the Company Information page to the same language that was used to set the original filter criteria. Otherwise, the filter criteria may not be evaluated as expected.
  • Choose formula evaluates to true and enter a formula that returns a value of “True” or “False.” Salesforce triggers the rule if the formula returns “True.” For example, the formula AND(ISCHANGED( Priority ), ISPICKVAL (Priority, “High”) ) triggers a rule that changes the owner of a case when the Priority field is changed to High. If your condition uses a custom field, the rule entry will be deleted automatically if the custom field is deleted.
  • User : Specifies the user or queue to which the lead or case will be assigned if it matches the condition. Users specified here cannot be marked “inactive” and they must have “Read” permission on leads or cases.
  • Do Not Reassign Owner : Specifies that the current owner on a lead or case will not be reassigned to the lead or case when it is updated.
  • Email Template : We can specifies the template to use for the email that is automatically sent to the new owner. If no template is specified, no email will be sent. When assigning a lead or case to a queue, the notification goes to the Queue Email address specified for the queue and all queue members.
  • Predefined Case Teams : Specifies the predefined case team(s) to add to a case when it matches the condition. A case team is a group of people that work together to solve cases.
  • Replace any existing predefined case teams on the case : Specifies that any existing predefined case teams on the case are replaced with the predefined case teams on the condition, when a case matches the condition.

After creating the entry, click  Save , or  Save & New  to save the entry and create more entries.

Assignment Rule Example

Following is sample Case assignment rule which assigns case to different queues based on Billing Country, Account SLA and customer type:

For more details about assignment rules please refer to assignment rules  official link.

Assignment rules in Salesforce trailhead

Good luck for creating Assignment rules in Salesforce 🙂

  • Assignment rules , Assignment rules Salesforce , Case Assignment rules , Lead Assignment Rules , salesforce , sfdc

Ankush Dureja

Permanent link to this article: https://www.sfdcpoint.com/salesforce/assignment-rules-in-salesforce/

Skip to comment form

case owner (using assignment rule) salesforce

  • Stremove.com on August 2, 2020 at 9:10 am

Case Assignment Rules Determine how cases are assigned to users or put into queues as they are created manually, using Web-to-Case, Email-to-Case, On-Demand Email-to-Case, the Self-Service portal, the Customer Portal, Outlook, or Lotus Notes.

case owner (using assignment rule) salesforce

  • Dayene on August 25, 2020 at 7:01 pm

Hi! What about when I want my assignment to change when the Lead status is changed? I’ve created two criterias. First when the status is new and second when the status has other values. But when the Lead is updated and the status changes the assignment doesn´t follow this change and it does not assignment the Lead Owner correctly. Thanks.

case owner (using assignment rule) salesforce

  • Vrushabh LEngade on October 27, 2020 at 3:51 pm

Use Escalation Rules and escalate the case to another user or queue

case owner (using assignment rule) salesforce

  • subhasini on December 23, 2021 at 6:19 pm

Hi Ankush Dureja, there is a interview question on assignment and the question is : What will happen if the user becomes inactive(or user is deactivated) on whom the rule is assigned. Please reply me ASAP

Leave a Reply Cancel reply

Your email address will not be published.

Popular Posts

  • Navigation Service in LWC(Lightning Web Components) 16 comments
  • Modal/Popup Lightning Web Component(LWC) 6 comments
  • Batch Apex Example In Salesforce 17 comments
  • Wrapper Class in Apex Salesforce 20 comments
  • for:each template directives in LWC 1 comment
  • Get Record Id in Lightning Web Component 9 comments
  • Lightning Web Components(LWC)Tutorial 4 comments
  • template if:true Conditional Rendering LWC 8 comments
  • Triggers in Salesforce 5 comments
  • Lightning Web Component(LWC) Toast Messages 13 comments
  • May 2023  (1)
  • March 2023  (1)
  • January 2023  (1)
  • November 2022  (1)
  • October 2022  (1)
  • September 2022  (2)
  • August 2022  (2)
  • June 2022  (1)
  • February 2022  (1)
  • January 2022  (1)
  • September 2021  (2)
  • August 2021  (1)
  • June 2021  (2)
  • May 2021  (2)
  • April 2021  (2)
  • January 2021  (2)
  • December 2020  (1)
  • October 2020  (1)
  • September 2020  (1)
  • August 2020  (2)
  • June 2020  (2)
  • May 2020  (20)
  • April 2020  (10)
  • March 2020  (6)
  • February 2020  (6)
  • January 2020  (2)
  • December 2019  (6)
  • November 2019  (3)
  • March 2019  (1)
  • February 2019  (1)
  • January 2019  (2)
  • December 2018  (7)
  • November 2018  (4)
  • October 2018  (2)
  • June 2018  (1)
  • April 2018  (1)
  • March 2018  (1)
  • January 2018  (1)
  • December 2017  (2)
  • November 2017  (1)
  • October 2017  (2)
  • September 2017  (2)
  • August 2017  (1)
  • July 2017  (1)
  • May 2017  (2)
  • April 2017  (8)
  • October 2016  (1)
  • June 2015  (1)
  • February 2015  (1)
  • October 2014  (1)
  • August 2014  (1)
  • June 2014  (4)
  • May 2014  (1)
  • April 2014  (2)
  • March 2014  (4)
  • February 2014  (22)

Recent Posts

  • How Salesforce Einstein GPT is changing the Game for Small-Medium Enterprises
  • What are the benefits of Salesforce health cloud?
  • salesforce customer 360 overview and features
  • Difference Between Workflow Process Builder and Flow
  • Salesforce Integration Interview Questions And Answers
  • Salesforce developer interview questions
  • Salesforce Admin Interview questions
  • Salesforce Lightning Interview Questions
  • Salesforce Field Service Implementation
  • Salesforce Course Details | Eligibility, Fees, Duration

Recent Comments

  • luqmaan s on Pagination using StandardSetController with wrapper class
  • Santosh on Get Record Id in Lightning Web Component
  • Micky on custom label in visualforce page
  • Syed Wassim on salesforce order of execution
  • NoviceDev on Avoid recursive trigger in salesforce

TOTAL PAGEVIEWS

  • SFDC Share Point

Our Facebook page

https://www.facebook.com/sfdcpoint

© 2024 Salesforce Blog.

Made with by Graphene Themes .

Privacy Overview

How to Apply Case Assignment Rules in Flow

May 18, 2023 Yumi Ibrahimzade Actions , Automation , Flow , Flow Actions , Flow Packages , Packages 26

How to Apply Case Assignment Rules in Flow

The case object is a core part of the Salesforce platform. It helps manage and track customer issues and inquiries. You can use this standard object to handle support requests effectively. The case object acts as a central repository for recording and monitoring customer interactions. It allows you to streamline your customer service processes. In order to improve the support efficiency, it is important to assign cases to the right teams or individuals. Although you can manually assign the record, it is possible to use the standard case assignment rules as well. Case assignment rules determine how cases are assigned to users or put into queues.

When you create a new case record, you can just mark "Assign using active assignment rule" to run case assignment rules.

Checkbox to assign case using active assignment rule

However, if you are creating the case record using Salesforce Flow, there is no standard option to run the case assignment rules. This option exists just for lead assignment rules. Moreover, when you create a case using flow, you have to set the correct owner id. Otherwise, the system doesn't run the case assignment rules and assigns the case to the current user. If you really want to use the logic that you have in your assignment rule, you will have to build the same logic again in the flow.

Standard action to apply lead assignment rules

In this post, you can find a custom invocable action (Apex class) that runs case assignment rules for any case record that you want.

How to Use the Action

1-  Install the action using the installation links below.

2-  Add a new action to your flow and search for "Apply Case Assignment Rules", this is the name of the action that you installed.

Add Apply Case Assignment Rules Action

3- Give a name to the action and provide the id of the case record that you want to assign.

Assign case using the custom action

You can use this action in any flow type that supports the action element.

Here is a screen flow that clones a case record with its related records. It uses this custom action to assign the new case record. Read this post to learn how to create a flow to clone a record with its related records.

Installation Links

Use this link to install in production or developer edition environments.

Use this link to install in sandbox environments.

25 Comments

Is that a future method or synchronous?

It is synchronous.

Hi Yumi, I tried using this on a case after save flow as an immediate action on create and it doesn't work. However, if I add a scheduled path of 0 min after creation, it works. Do you know of this limitation? Thanks!

I'm also noticing that this doesn't work when a guest executes a screen flow from a public page which creates the case.

Is your screen flow working in system context - view all data?

Hi Jay, It works in asynchronous path as well. I will check if it is possible to use it in the immediate path.

Thank you, I don't have to code this now.

You are welcome!

Hey Yumi, Case is assigned but email is not fired to members of queue? Any suggestions?

Hi Priyanshu, You are right. I just added it to the code and uploaded the package again. Can you please try with the new version?

Thanks Yumi, Can you please provide the url for new version?

Yumi, waiting for your response.

Is there a way to verify (in a flow decision), using a formula or some other way, if the "Assign using active assignment rule" is checked? I have a user case where the Assignment rules need to be triggered within the flow ONLY when the checkbox "Assign using active assignment rule" is checked, but I cannot find a way to do so. Any ideas?

"Assign using active assignment rule" is not a field on the object, so I think unfortunately it is not possible to get this information.

Hey Yumi Ibrahimzade, Not working in production or can you please provide url for update version? Thanks in advance 🙂

Thank you so much for this package. I just came across the need for this and then found your solution. It works exactly as expected.

I am glad that you found it useful!

Thanks Yumi, It helped me a lot to resolve my issue!

I am glad that you liked it Nadia!

Thanks for the post, Yumi, would you be willing to publish the code in a code snippet?

You are welcome Andy. Here is the code:

public class ApplyCaseAssignmentRules { @InvocableMethod (label='Apply Case Assignment Rules') public static void CaseAssign(List CaseId) { Database.DMLOptions dmo = new Database.DMLOptions(); dmo.assignmentRuleHeader.useDefaultRule= true; dmo.EmailHeader.TriggerUserEmail = true; Case Cases=[Select id From Case Where Case.id in:CaseId]; Cases.setOptions(dmo); update Cases; } }

I am using this action in a trigger flow (After Save), but it's not working, I should a scheduled path if I wanted to work, any suggestions please ? Thank you

Hi, You should use this action in a scheduled or asynchronous path.

I am trying to install in sandbox and getting this error: ApplyCaseAssignmentRulesTest: Method does not exist or incorrect signature: void startTest() from the type Test

Worked perfect in a screen flow with no Scheduled or Asynchronous path.. Thanks!

1 Trackback / Pingback

  • Integrating ChatGPT with Salesforce: A Real-Life Example

Leave a Reply Cancel reply

Your email address will not be published.

Save my name, email, and website in this browser for the next time I comment.

Copyright © 2024 | SalesforceTime.com

IMAGES

  1. Tutorial 21 : Case Assignment Rules in Salesforce

    case owner (using assignment rule) salesforce

  2. How to Apply Case Assignment Rules in Flow

    case owner (using assignment rule) salesforce

  3. Case Assignment Rule in Salesforce

    case owner (using assignment rule) salesforce

  4. Case Assignment Rule in Salesforce

    case owner (using assignment rule) salesforce

  5. Case Assignment Rules in Salesforce

    case owner (using assignment rule) salesforce

  6. Create and manage Assignment rules in Salesforce

    case owner (using assignment rule) salesforce

VIDEO

  1. Salesforce Türkçe Öğretimi

  2. Tutorial 20 : Lead Assignment Rules in Salesforce

  3. Sales Cloud: Lead Assignment Rule

  4. 3 of 4 Assignment Rule

  5. Duplicate Rules in salesforce with example || Matching Rule in Salesforce

  6. 25.SalesforceAdminPublicReadWriteSharingVsTransferOwnerUpdateQueueMembersCreateQueueManualSharing

COMMENTS

  1. Case or Lead Assignment Rules fail to set the Owner

    The default setting will force the assignment rule to run unless the checkbox is deployed and a User manually deselects the checkbox. Click OK and click Save. Note: Cases can also be assigned to the Default Case Owner if the assignment rules fail to locate an owner (the case doesn't meet the criteria of any active rule), this might give the ...

  2. assignment rules

    If certain criteria applies, we trigger a case creation and specify who the case owner is. However, after the Case is created and assigned. Salesforce will auto-assign the Case to the "Default Owner" found in Build > Customize > Cases> Support Settings. As you can see below the correct owner is assigned, but Salesforce will reassign the record:

  3. Case Assignment Rule in Salesforce

    Here are the steps to create a case assignment rule in Salesforce Classic: Step 1: Log in to your Salesforce Classic account. Click on Avtar and then select Switch to Salesforce Classic. Switch to Salesforce Classic. Step 2: Go to the Setup menu in Salesforce Classic and click on the Build section.

  4. Set the option 'Assign using active assignment rules' to ...

    Click the 'Layout Properties' button on the palette and disable the 'Show on edit page' and 'Select by default' Case Assignment Check-box and click OK, then click Save. 4. Test and confirm that when a user creates a new case/lead, the 'Assign using active assignment rules' checkbox is set to true. Save the case/lead.

  5. Email-to-Case Best Practices: Case Assignment Rules ...

    When you set up Email-to-case, you can take those emails and turn them automatically to Case records in Salesforce, send auto-replies, distribute them to your support team, and take other automated actions. These will save support teams a lot of energy creating Case records and managing them appropriately. Instead, you have the chance to free ...

  6. Best Practices for Optimizing Case Assignment Rules in Salesforce

    Access setup. Log in to your Salesforce account and navigate to the Setup menu located in the top-right corner of the screen. Search for assignment rules: In the Quick Find box, type "Assignment rules" and select what Assignment Rules you need to configure: Lead Assignment Rules or Case Assignment Rules. Create a new rule.

  7. 10 Salesforce.com Case Assignment Rules Best Practices

    Lastly, Apex Triggers can be used to integrate Salesforce.com Case Assignment Rules with other systems, such as ERP or CRM applications, making it easier to manage data across multiple platforms.5. Create a Default Rule for Unassigned Cases ... The user will then be able to select themselves as the owner when creating or editing a case. Admins ...

  8. Why assignment rule triggered even after the Assignment ...

    "The default owner of a case when assignment rules fail to locate an owner." Even after deleting the Assignment rule Why assignment rule triggered? The exception to the above is, if the Rest API is used and the Sforce-Auto-Assign header is not set, as mentioned this will default to True. During the transaction of the Case update, if there is no ...

  9. How to notify original case owner (user) when assigned via assignment

    How to notify original case owner (user) when assigned via assignment rule during case creation? I need out-of-the-box solution. ... Salesforce - Case Assignment Rule Email is not Working. Hot Network Questions Local weather under large dome in tropical region

  10. Salesforce Cases-Astrea's Guide to Salesforce

    4. Select the user or queue name you want to be the owner of a case if no assignment rules apply. 5. Click Save. Creating a Case Assignment Rule . 1. From Setup, enter case in Quick Find Box then select Case Assignment Rules. 2. Click New. 3. Enter a rule name. 4. Click Save. 5. Click New in the Rule Entries section. 6. Enter an order number to ...

  11. Does "Changed Owner (Assignment)" denote assignment rules?

    2. Yes, this annotation ("Assignment") means that the record was transferred specifically by an Assignment Rule, and not by any manual or otherwise automated process, including Workflow Rules, Apex Triggers, Flows, and Process Builder assignments. However, keep in mind that at least in Apex, you can use the DmlOptions class to recursive save ...

  12. Assignment rules in Salesforce

    Assignment rules in salesforce are used to automatically assign lead or Case to owner ( User Or Queue ). Assignment rule is used to automate owner assignment on Case and Lead based on conditions on Case or Lead. For example, there could on lead assignment rule for web-generated leads and one case assignment rule for the holiday use.

  13. Make "assign using assignment rules" default to true on Case

    1. When editing a case, Salesforce displays a checkbox on the bottom of the page that reads "Assign using active assignment rules" in the "optional" section, but it is unchecked by default.

  14. Case assignment rules reassigning back to queue

    If you are using Omni-Channel: Add WRONG QUEUE (or whatever your code may be) status to the Case Status field as a choice. Set the decline reason in Omni Channel: Omni-Channel>Presence Decline Reason. Add your code from #1. Add your code from #1 to Default Presence Configuration: Omni-Channel Settings>Default Presence Configuration. Share.

  15. Case Assignment Rules and Case After Update trigger

    I have Case assignment rules that changes the Case ownership with some specific user/queue(s) based on changes to Status value(s). But, whenever I change the Status value, and Save the record, my Trigger is kicking in. But, as Case Assignment rules fire once the data commits to database, my Owner is remained with older value.

  16. How to Apply Case Assignment Rules in Flow

    1- Install the action using the installation links below. 2- Add a new action to your flow and search for "Apply Case Assignment Rules", this is the name of the action that you installed. 3- Give a name to the action and provide the id of the case record that you want to assign. You can use this action in any flow type that supports the action ...

  17. Case Assignment Rules cause permissions error for User, but Case is

    Our Salesforce system has a private OWD for the Case object, with access opened up via Owner-Based Sharing Rules, Case Teams & the Role Hierarchy. We recently implemented assignment rules to start assigning Cases to queues.