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 assignment rule default

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 sql server reboot best practices, 10 angular application architecture best practices, 10 web project folder structure best practices, 10 httparty best practices.

  • 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

About 30 mins

Learning Objectives

Case management tools in salesforce, plan for case automation, share case lists or workloads with queues, add automatic case assignment with rules, add automatic case escalation with rules, add automatic responses to customers with rules, more case management tools in salesforce.

  • Challenge +500 points

Automate Case Management

After completing this unit, you’ll be able to:

  • Route case ownership with queues.
  • Assign cases automatically.
  • Escalate cases when necessary.
  • Respond to customers automatically.

Accessibility

This unit requires some additional instructions for screen reader users. To access a detailed screen reader version of this unit, click the link below:

Open Trailhead screen reader instructions .

Case management means organizing customer cases into one place and making sure they go to the right person, for the right answer, by the right time. Service Cloud does all that behind the scenes with automation tools. Service is easier, faster, and better with a little automation.

Maria checks out a few of the main case automation tools. She notices automatically is the key word.

Queues

Automatically prioritize your support team’s workload by creating lists from which specific agents can jump in to solve certain types of cases.

Assignment Rules

Automatically assign incoming cases to specific agents so that the right people work on the right cases.

Escalation Rules

Automatically escalate cases to the right people when the cases aren’t solved by a certain time.

Auto-Response Rules

Automatically send personalized email responses to customers based on each case’s details.

Graphic of a robot automating case processes.

Based on what the tools can do, Maria jots down some questions to ask Ursa Major Solar’s service team. The answers determine which tools Maria uses to automate case management.

Question

Answer

Tool

Do support agents work as a team on specific issues?

Yes, some agents work off a list of emails as they arrive from customers.

Queues

How is the support team structured?

We have Gold and Platinum support teams. Platinum support shares a workload.

Queues

or

Assignment Rules

Do support agents work on specific products or have special skills?

Some agents work on solar panel installation while others work on solar panel performance.

Assignment Rules

Do cases need to escalate to someone if they’re not solved by a specific time?

Yes, we can’t have customers waiting more than 5 hours to get their issues solved.

Escalation Rules

Should customers receive automatic responses?

Yes, we want customers to know that we received their issue and that we care about them.

Auto-response Rules

Based on Maria’s case automation planning, she knows that the Platinum Support team shares a workload of incoming cases. These cases are from customers who pay extra for the best service. To help these agents find and work off this list of cases from high-priority customers, Maria creates a queue. Here’s how she does it.

  • Click the setup gear icon and select  Service Setup .
  • From Service Setup, enter Queues in the Quick Find box, then select  Queues .
  • Click  New .
  • Type a Label and Name for the queue, such as  Platinum Support .
  • If you want the support agents included in the queue to receive an email when a new case arrives, leave Queue Email blank. Otherwise, type an email address to notify a person or persons with the email address when each new case arrives.

A screenshot of the Queues page in Service Setup.

  • Add members, including yourself, to the queue and save your changes. Now that the queue is created, let’s check it out as if we were support agents. We can get there with a few clicks.
  • Select the Service Console app from the App Launcher. Then click the  Cases tab.

A screenshot of the Cases tab with Platinum Support selected from the view dropdown.

While planning for case automation, Maria learns that she can assign incoming cases to one person, groups of people, or even queues. Since some support agents at Ursa Major Solar work on solar panel installation, she creates an assignment rule so that any case with a reason that includes “installation” is automatically assigned to them. This is what she does.

  • From Service Setup, enter Case Assignment Rules in the Quick Find box, then select  Case Assignment Rules .
  • Type  Solar Panel Installation and save your changes.

A screenshot of the Case Assignment Rules page in Service Setup.

  • In Sort Order , type  1 so that the entry we add is processed first. Typically, you’d create one assignment rule with many different entries, which are processed in chronological order. When a case matches an entry, it’s assigned without proceeding to other entries.
  • For entry criteria, select  Case: Case Reason equals Installation . One of the many useful things about case assignment rules is that you can determine how cases are assigned based on fields from records other than cases. For example, you can choose case assignment based on fields from accounts, contacts, assets, or users.
  • Add yourself as the User assigned to the rule entry. We assume you’re a support agent who’s an expert at solar panel installation.

A screenshot of the Case Assignment Rules page with a user and email template selected.

  • Save your changes.
  • Click Edit to mark the rule as Active, then save your changes. When you activate an assignment rule, it disables any other assignment rules in your organization, so make sure that your active rule includes all of the assignment entries that your support team needs.

Now any cases about installation issues are automatically assigned.

When planning case management with the service team, Maria learns that certain cases must escalate to the right person within 5 hours. A lingering customer case can ruin a big deal or tarnish Ursa Major Solar’s brand. Just like assignment rules, Maria can use escalation rules to specify criteria that automatically trigger an action on a case. For case escalation, she uses her org’s default business hours, which simply means the service team is available 24 hours a day, 7 days a week. She can change Business Hours later from Company Settings in Service Setup. Here’s how Maria sets the rule.

  • From Service Setup, enter Escalation Rules in the Quick Find box, then select  Escalation Rules .
  • Type Gold Support , then Click  Active and save your changes. Activating a rule deactivates any existing active rules.

A screenshot of the Escalation Rules page in Service Setup.

  • In Sort Order , type  1 so that the entry we add is processed first. In the real world, you’d create one escalation rule with many different entries, which are processed in chronological order. When a customer issue comes in and is converted to a case, it’s assigned based on the first entry it matches.
  • For entry criteria, select  Case: Status equals New . Similar to other rules, you can determine automatic case escalation based on fields from records other than cases.
  • Set business hours to your organization’s default 24/7 support.
  • Set that escalation times are based on when cases are created.
  • Save your changes, then  New to add an escalation action.

A screenshot of the Escalation Rules page with an escalation action set for five hours.

  • Auto-assign cases to you, and from  Notification Template , click the lookup icon to pick any template. At a real company, you’d assign cases to a support manager or team.
  • Select yourself as the user to notify, and from  Notification Template , click the lookup icon to add a template to see how this works. Save your changes.

Now any cases that haven’t been closed in 5 hours are assigned to the right person.

Note : To keep the Assign using active assignment rule box checked by default on cases, update the Layout Properties on case page layouts.

From Maria’s case automation planning, she knows the service team wants customers to receive a confirmation when their case is received. With auto-response rules, she can make sure each Ursa Major Solar’s customer knows that their voice is heard. She sets up response rules so that customers are automatically sent a personalized email when they ask for help. Here’s how she does it.

  • From Service Setup, enter Case Auto-Response Rules in the Quick Find box, then select  Case Auto-Response Rules .
  • Type Welcome to Support , then Click  Active and save your changes. Activating a rule deactivates any existing active rules.

A screenshot of the Case Auto-Response Rules page in Service Setup.

  • In Sort Order , type  1 so that the entry we add is processed first. In the real world, you’d create one response rule with many different entries, which are processed in chronological order. When a customer issue comes in and is converted to a case, it’s assigned based on the first entry it matches.
  • For entry criteria, select  Case: Case Origin equals email . Similar to escalation rules, you can determine the automatic response to send to a customer based on fields from records other than cases.
  • Add a name and email address to include in the From line of the email template to send to customers.

A screenshot of the Case Auto-Response Rules page with field criteria and email templates selected.

  • Save your changes and you’re done!

With basic case automation complete, the service team at Ursa Major Solar is looking forward to easier, faster service. But Sita and Roberto want to make the most of their Service Cloud investment. They wonder what other case management tools the team can use in the future.

Maria looks into more case management options. She jots down these discoveries to share.

Page Layout Editor

Customize a case page’s contents, like the fields and buttons that appear on the page, along with what is visible to whom. Additionally, customize the structure of the page, and the position of its components, with the Lightning App Builder.

Email Templates

Create email templates to save time and standardize communications sent to customers from cases. Automate information on emails with merge fields. Templates are automatically available to anyone in the org.

Entitlement Management

Provide the correct level of support for customers. Define, enforce, and track service agreements and service contracts as part of an overall support management process.

Omni-Channel

Manage support agents’ priorities and their capacity to take on work items so that they’re given only the number of assignments that they can handle. Route all assignments to the correct agents so that they no longer have to choose work assignments manually from a queue.

Macros

Help support agents automatically complete repetitive tasks on cases, such as selecting the right email templates, so that they can spend time doing more important things.

Quick Text

Create predefined messages for support agents, like greetings, answers to common questions, and short notes to insert in cases, emails, web chats, and more. Save time and standardize on messaging to customers.

Utilities

Give support agents quick access to productivity tools, like notes, history, softphones, and more in the footer of the console.

Sita and Roberto want to explore some of these tools when they return to the case management stage of their service journey. But for now, they’d like to jump ahead to the basics of digital engagement.

  • Salesforce Help: Set Up Queues
  • Salesforce Help: Assignment Rules
  • Salesforce Help: Set Up Escalation Rules
  • Salesforce Help: Set Up Auto-Response Rules
  • Salesforce Help: Lightning Experience Customization
  • Get personalized recommendations for your career goals
  • Practice your skills with hands-on challenges and quizzes
  • Track and share your progress with employers
  • Connect to mentorship and career opportunities
  • Salesforce Sales Cloud
  • Salesforce CPQ / Revenue Cloud
  • Salesforce Service Cloud
  • Salesforce Experience Cloud
  • HubSpot / Pardot / Marketo
  • RevOps Tools
  • Advisory & Architecture
  • Acquisition Integration (Org Merge)
  • Salesforce GTM Techstack Roadmap
  • Managed Services / Staff Augmentation
  • Implementations & Optimizations
  • Custom Development / AppExchange
  • Custom Training
  • Case Studies
  • Your Growth Goals

Configuring the “Assign using active assignment rules” checkbox

case assignment rule default

There are certain behaviors in Salesforce that I classify as particularly pesky. Like the mosquito buzzing your ear while you sleep, kind of pesky. Invariably with these types of problems it becomes worth turning on the proverbial lights, hunting down the offending pest and… well you know, “dealing” with it. It won’t change the world but sure feels better to have done it.

That being said, one of my favorite pesky Salesforce.com problems to have dealt with is controlling the default setting on the “Assign using active assignment rules” checkbox on Lead and Case records.

Description: This checkbox field allows users who have manually created a new Lead or Case record to use the system’s pre-defined assignment rules to route the record to the correct owner/queue. The field appears on the Edit page layout and seems defaulted to the wrong setting for the situation more often than not.

Problem: Unlike normal checkbox fields in Salesforce.com, setting the default behavior for this field is not done in the field edit list on the object and it is not readily apparent where the behavior is set.

Here is the checkbox on the bottom of the Lead layout in edit mode: (Default set to False in both examples)

case assignment rule default

Here is the checkbox on the bottom of the (open) Case layout in edit mode:

case assignment rule default

The Solution: For both the Cases and Leads object the default behavior is set in their respective page layouts and if that is not elusive enough, it is buried in the page layout properties option dialog box.

Once you know where to look it is simple to make the needed changes.

Steps to find the behavior options and set defaults to either True or False: (Using Cases object as the example)

  • Your Name: Setup:
  • In the left-hand menu list select: Cases: Page Layouts: Choose a Page layout
  • In the newly presented dialog box, find the  Case Assignment  section: Check or Un-check the checkbox labeled “Select by default”
  • Save: the Layout

Screenshot of the edit page for a Case Page layout and the default behavior setting:

case assignment rule default

Commentary: As frustrating as it is to need to manage the default settings for these checkboxes differently than for other checkboxes, there is merit to the method.

Consider now the value of this more granular control of this field that Salesforce has given you. On normal fields you may only default a checkbox field to True or False and that setting applies across all situations. To create anything more dynamic requires custom engineering. (e.g. triggers, VF pages).

So, here is an example of it in action: Imagine you have enabled Lead assignment rules in your organization. Imagine also that you have both Sales Administrators sales reps that manually enter Leads into the system from time to time.

Sales reps create Leads for themselves so they would prefer to have the Active Assignment default to False whereas the Sales Admin that never owns Leads would prefer to have the Active Assignment default to True. If these checkboxes behaved like ordinary checkboxes you could only satisfy the needs of one group. However, by assigning different page layouts and setting the default behaviors on each layout you can meet the needs of both groups–a novel concept I know.

case assignment rule default

fast-track your mission critical project

Privacy overview.

SimplySfdc.com

Monday, november 12, 2012, salesforce: assign using active assignment rule.

case assignment rule default

  • Assignment Rules
  • 'Assign using active assignment rules' checkbox always checked by default
  • Why Salesforce assignment rule is not working?
  • Case Assignment Rules not working
  • Idea Exchange:  Assignment rules don't work with Inline Edits  

2 comments:

case assignment rule default

NOTE: Unlike the Case object, the Lead object requires the 'Show on edit page' checkbox to be enabled when the "Default" checkbox is enabled.

Thanks, because Default will be uncheck when 'Show on edit page' disable in Lead.

Page-level ad

How to Apply Case Assignment Rules in Flow

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

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.

27 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!

Hi Yumi! We have installed the packaged and worked perfectly well in a flow that creates cases. Thank you so much for this. We are facing another situation: we have a flow that reopens a case and we need to go through assigment rules again only when the case user owner is not active. We added the apex code to the flow but it didn´t work in this scenario. Does it trigger only for new cases? Is it possible to use it for updated cases? Can you help? Thank you in advanced.

It works on update too, can you try to run this action in async path?

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

  • AppAssessor

Articles by role:

  • Consultants
  • Business Analysts

By Lucy Mazalon

By Ben McCarthy

  • Courses Login

What’s trending

An admin’s guide to salesforce soql + examples.

Top 10 Salesforce Ecosystem Trends in 2024: The Good, the Bad, and the Ugly

50 Most Popular Salesforce Interview Questions & Answers

30 Salesforce Admin Interview Questions & Answers

30 Salesforce Developer Interview Questions & Answers

UPCOMING EVENTS

Secure and improve confidence in your salesforce data , how to deploy salesforce flows like a pro, forcelandia.

Portland, USA

From Bottlenecks to Benchmarks

Ready for salesforce data cloud key data quality facts you need to know, email-to-case best practices: case assignment rules, queues & auto-replies.

By Stacy O’Leary

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 up the team’s time to focus on the Cases that really require intervention.

1. Who Can Use Email-to-case?

case assignment rule default

2. Set up Queues with a Catch-all Queue

case assignment rule default

3. Send Auto-replies with the Process Builder

  • Subject does not contain Out of Office, OOO, out-of-office, vacation, PTO, paid time off, holiday
  • Web Email does not contain @mycompanydomain

4. Add the Case Feed ID to the Case Email Templates

case assignment rule default

5. Sort Cases Based on Case, Contact, or Account Fields

case assignment rule default

Bonus Tip: Familiarize Yourself with the Support Settings

Stacy o'leary.

case assignment rule default

More like this:

Salesforce user provisioning: 5 ways to add and update users.

By Tom Bassett

By Andreea Doroftei

Salesforce Login Flow: Here’s How You Can Customize Your Login Experience

By Tim Combridge

Leave a Reply Cancel reply

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

TheSyllaGroup-Your-Agile-and-Digital-Par

Cloud SYlla

Your Agile & Digital Partner

  • Mar 2, 2023

Understanding Assignment Rules: A Comprehensive Guide

case assignment rule default

Assignment rules are an important feature of Salesforce that help businesses automate assigning records to specific users or teams based on predefined criteria. This article will discuss assignment rules, how they work, and the benefits they provide to businesses.

What are Assignment Rules?

Assignment rules are a set of criteria that are defined by businesses to determine how records should be assigned to users or teams within the Salesforce system. These criteria can be based on several factors, such as the record type, location, record status, or the user's role or territory. For example, a company may set up an assignment rule to automatically assign a new lead to the sales rep who covers that particular region or product line.

How do Assignment Rules Work?

When a record is created or updated, the assignment rules evaluate the record based on predefined criteria. The assignment rule automatically assigns the record to the designated user or team if the criteria are met. Once the record is assigned, the user or team can work on the record.

Salesforce provides a simple wizard that enables administrators to set up assignment rules. The wizard allows administrators to define the criteria for the assignment, select the user or team to assign records to, and set up any needed notifications or escalations.

How to Set Up Assignment Rules in Salesforce

case assignment rule default

Setting up assignment rules in Salesforce is a straightforward process that requires the following steps:

Identify the criteria for record assignment - Before creating an assignment rule, businesses should first identify the criteria used to assign records. It might include the record type, location, user role, or other custom fields.

Create the assignment rule - Once the criteria have been identified, businesses can create the assignment rule in Salesforce. It involves setting up a rule that evaluates the criteria and assigns records to the appropriate user or team.

Test the assignment rule - After the assignment rule has been created, businesses should test it to ensure it is working correctly. It might involve creating test records and verifying that they are assigned to the correct user or team.

Activate the assignment rule - Testing it in Salesforce will allow it to be activated. It allows it to automatically assign records to the appropriate user or team.

Types of Assignment Rules in Salesforce

case assignment rule default

Salesforce offers two types of assignment rules: standard assignment rules and lead assignment rules.

Standard assignment rules assign records to users or teams based on predefined criteria. They can be set up for various record types, including leads, cases, and opportunities.

Lead assignment rules are specific assignment rules used to assign leads to sales reps. They evaluate the criteria for a lead, such as location or product interest, and assign the lead to the appropriate sales rep based on a round-robin or customized assignment method.

Benefits of Assignment Rules

There are several benefits to using assignment rules in Salesforce, including:

Increased Efficiency

One of the most significant benefits of assignment rules is their increased efficiency. By automating the process of assigning records, sales, and customer support teams can spend less time manually assigning leads and cases to the appropriate users or teams. They can focus on more important tasks, such as following up with leads, resolving customer issues, and closing deals.

With assignment rules, businesses can streamline their processes and reduce the time it takes to respond to customer inquiries, ultimately improving their overall efficiency and productivity.

Improved Customer Satisfaction

Another important benefit of assignment rules is the improved customer satisfaction they can provide. Businesses can automatically assign cases to the appropriate user or team to ensure that customer inquiries are handled promptly and efficiently. Customers receive faster responses to their inquiries, which can help improve their overall satisfaction with the company.

In addition, by assigning cases to users with the appropriate skills and knowledge, businesses can ensure that customer issues are resolved more effectively, further improving customer satisfaction.

Accurate Data

Assignment rules also help businesses maintain accurate data in their CRM system. By automating the process of assigning records, businesses can ensure that data is entered correctly and consistently. It means that reports and analytics generated from the data are more accurate and reliable, which can help businesses make more informed decisions.

In addition, businesses can use assignment rules to enforce data validation rules, which can help prevent incorrect data from being entered into the system.

Consistency

Another benefit of assignment rules is that they help ensure consistency in record assignments. By automating the process of assigning records, businesses can ensure that records are assigned to the appropriate user or team consistently. It reduces the risk of errors or omissions occurring when records are manually assigned.

In addition, by using assignment rules to enforce a standardized process for record assignment, businesses can ensure that records are handled consistently across different teams and regions.

Flexibility

Finally, assignment rules provide businesses with great flexibility in assigning records. Businesses can define complex rules based on various criteria, such as record type, location, or user role. Businesses can customize their assignment rules to fit their specific needs and workflows.

In addition, assignment rules can be updated or modified as needed, allowing businesses to adapt to changes in their business or industry.

Best Practices for Using Assignment Rules in Salesforce

Businesses should follow these best practices to ensure Salesforce assignment rules are working effectively:

Define clear assignment criteria: Before setting up assignment rules, businesses should define clear criteria for record assignments. It will help ensure that records are assigned accurately and consistently.

Test assignment rules before activation: Before activating assignment rules, businesses should test them to ensure that they are working correctly. It will help prevent errors and ensure that records are assigned to the appropriate user or team.

Monitor and adjust assignment rules: It is important to monitor them regularly to ensure they are working properly. Businesses should also be prepared to adjust assignment rules as needed to accommodate changes in their business or industry.

Communicate changes to users: When changes are made to assignment rules, businesses should communicate with them to ensure they are aware of any changes in their workload or responsibilities.

In conclusion, assignment rules are a powerful feature of Salesforce that helps businesses automate assigning records to specific users or teams. The benefits of assignment rules include increased efficiency, improved customer satisfaction, accurate data, and consistency.

By using assignment rules, businesses can streamline their processes, improve their overall effectiveness, and achieve their goals more efficiently.

At Cloud Sylla, our sole focus is on assisting businesses in achieving success through digital transformation. Our goal is to aid customers in making the crucial shift to digital technologies, enabling them to bolster their strategies, multi-channel distribution, and internal operations.

Recent Posts

What is Orchestration Flow in Salesforce? Detailed Guide

What is Record-Triggered Flow in Salesforce? Detailed Guide

How to Get & Reset Security Token in Salesforce? (Detailed Guide)

Stack Exchange Network

Stack Exchange network consists of 183 Q&A communities including Stack Overflow , the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Q&A for work

Connect and share knowledge within a single location that is structured and easy to search.

Disable assignment rule(s) and default owner when using email-to-case?

I have a scenario where Case Owner is changed only using Apex code, rather than through assignment rules + default owner. We've been able to make it work for a couple of different Case creation scenarios.

However, when using email-to-case (at least on-demand) the assignment rules + default owner are applied.As this happens after the Apex code we use (an after insert trigger), the Case Owner gets overridden.

We have implemented a workaround, using a "dummy" assignment rule. It works, but it's not a very nice solution. We have some other ideas, but they may require more effort.

We'd like to understand our options. Is it possible to prevent the assignment rules + default owner from being applied in the first place when using email-to-case?

  • assignment-rules

crmprogdev's user avatar

2 Answers 2

I've solved this as follows

  • Recognize that triggers run before assignment rules and E2C will run assignment rules.
  • In before insert trigger, set custom field Bypass_Assignment_Rules__c to true for those use cases where assignment rules should be bypassed.
  • Create assignment rule (at position 1) that takes any Case with Bypass_Assignment_Rules__c = true and assign to a "in-transit queue"
  • This change in ownership will re-execute your triggers that can detect ownerId = inTransitQueueId and then do the assignment as you desire while also turning Bypass_Assignment_Rules__c to false.

cropredy's user avatar

  • Thank you for the quick anwer! This makes a lot of sense, so I have what I need now. –  David Vuorio Commented Jan 25, 2017 at 8:25

For Email To Case the assignment rule will fire after the triggers. So if we update the case owner in the insert trigger , then it executes the assignment rule and the case owner will be based on the Assignment rule entry not the one updated in the trigger.

How I solved the problem!!!!

  • In the after insert trigger accumulated all the ids that need the owner update. Passed those ids to a future method. In the future method done the necessary check and assigned the new case owner as per my requirement.

It works fine for me :)

I tried many other ways to tackle the problem, but it is future method that helps to solve the problem.

Nisha's user avatar

You must log in to answer this question.

Not the answer you're looking for browse other questions tagged email2case assignment-rules ..

  • Featured on Meta
  • Upcoming sign-up experiments related to tags

Hot Network Questions

  • Calibre viewer doesn't fill window
  • What does ‘a grade-hog’ mean?
  • What type of black color text for brochure print in CMYK?
  • How can a landlord receive rent in cash using western union
  • Is the FOCAL syntax for Alphanumeric Numbers ("0XYZ") documented anywhere?
  • Can I get a refund for ICE due to cancelled regional bus service?
  • In equation (3) from lecture 7 in Leonard Susskind’s ‘Classical Mechanics’, should the derivatives be partial?
  • Do Christians believe that Jews and Muslims go to hell?
  • Turning Misty step into a reaction to dodge spells/attacks
  • Event sourcing javascript implementation
  • How much is USA - Brazil?
  • Imagining Graham's number in your head collapses your head to a Black hole
  • Does concentrating on a different spell end a concentration spell?
  • Subject and particle in 彼は来ると思う
  • Is there any legal justification for content on the web without an explicit licence being freeware?
  • Does free multiplicative convolution become free additive convolution under logarithm?
  • What are these courtesy names and given names? - confusion in translation
  • Is Légal’s reported “psychological trick” considered fair play or unacceptable conduct under FIDE rules?
  • Duplicating Matryoshka dolls
  • Where can I access records of the 1947 Superman copyright trial?
  • Is there any other reason to stockpile minerals aside preparing for war?
  • Can front gear be replaced on a Retrospec Judd folding bicycle?
  • Are comments obsolete in favor of Generative AI?
  • Single author or joint paper with a famous author?

case assignment rule default

IMAGES

  1. Create Case Queues and Assignment Rules

    case assignment rule default

  2. How to set Assign using active assignment rules in Case to true by

    case assignment rule default

  3. FormAssembly Errors to Cases

    case assignment rule default

  4. Case Assignment Rules in Salesforce

    case assignment rule default

  5. Tutorial 21 : Case Assignment Rules in Salesforce

    case assignment rule default

  6. Case Assignment Rules in Salesforce

    case assignment rule default

VIDEO

  1. Difference Between i++ , i=i+1 in Hindi

  2. Contract Attorney Management

  3. Salesforce Enablement

  4. BeneFIT Medical FINAL Case Assignment

  5. Property Management: Default Agent

  6. Group Case Assignment 1: Iuiga’s Challenge: Is Omni-channel Worth It?

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. Create Case Queues and Assignment Rules

    From Service Setup, enter Case Assignment Rules in the Quick Find box and select Case Assignment Rules . Click New and enter the rule details. Select the Active checkbox to make this the active case assignment rule. Click Save . Add a rule entry that assigns Product Support cases to the Product Support Tier 1 queue.

  3. Set the option 'Assign using active assignment rules' to true, only

    7. 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.

  4. assignment rules

    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: ... Write a Case assignment rule that executes first - criteria = if case originated from WuFoo. Assign to any active user; Check the box ...

  5. 'Assign using active assignment rules' checkbox always checked by default

    To force case assignment rules, enable the 'Default' checkbox and disable the "Show on edit page" checkbox under Case Assignment Checkbox. This will remove the ability for users to turn off case assignment when editing or creating a case. If both checkbox options are enabled, the Assignment checkbox is displayed when creating and editing a case ...

  6. 10 Salesforce.com Case Assignment Rules Best Practices

    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. ... The Case Assignment Rules report shows how many cases were assigned by each rule over a given period of time. You can ...

  7. 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.

  8. Salesforce: Case Assignment Rules not working

    To force Case assignment rules, select Default under Case Assignment Checkbox and unselect 'Show on edit page'. This means end-users won't see any option to turn off case assignment rule when creating and editing a case. If both 'Show on edit page' and Default options are chosen, the assignment checkbox is displayed and is checked by default.

  9. Salesforce Cases-Astrea's Guide to Salesforce

    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.

  10. Automate Case Management

    Note: To keep the Assign using active assignment rule box checked by default on cases, update the Layout Properties on case page layouts. Add Automatic Responses to Customers with Rules. From Maria's case automation planning, she knows the service team wants customers to receive a confirmation when their case is received.

  11. Reassign an existing case using active assignment rules

    public static void reassignCaseWithActiveRule(ID myCaseId) {. //fetching the desired assignment rules on Case... AssignmentRule AR = new AssignmentRule(); AR = [select id from AssignmentRule where SobjectType = 'Case' and Active = true limit 1]; //recreating the DMLOptions setting for "Assign using active assignment rules" checkbox on Case ...

  12. Why assignment rule triggered even after the Assignment rule is

    "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 ...

  13. Configuring Active Assignment Rules in Salesforce

    From the Page layout editor screen: Select Layout Properties Button: In the newly presented dialog box, find the Case Assignment section: Check or Un-check the checkbox labeled "Select by default". Note: The same procedure can be done on the Leads object on a page layout-by-page layout basis. Click: OK.

  14. Salesforce: Assign using active assignment rule

    In Case and Lead, the Salesforce admin can configure Assignment Rules to automatically assign a newly created Lead or Case to a specific User or Queue. This assignment rule will trigger upon the case or lead creation, regardless of how the case or lead is created. The rule will also run when editing the case or lead by clicking the Edit button ...

  15. 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 ...

  16. Email-to-Case Best Practices: Case Assignment Rules, Queues & Auto

    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 ...

  17. How to Prevent Case Assignment trigger on case updation?

    Some orgs have as their last rule, an explicit assignment to say, the Support Queue so when reviewing the assignment rules, you don't have to be aware of the default user in Support Settings Or ..you have the Assign using active assignment rules checkbox enabled to true on the edit page to always run assignment rules and you might want to ...

  18. Set Up Assignment Rules

    Service Cloud. Define conditions that determine how leads or cases are processed. The rules assign leads and cases to the specified user or queue.Required Editions and U...

  19. Set the option 'Assign using active assignment rules' to true, only

    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.

  20. Understanding Assignment Rules: A Comprehensive Guide

    Assignment rules are a set of criteria that are defined by businesses to determine how records should be assigned to users or teams within the Salesforce system. These criteria can be based on several factors, such as the record type, location, record status, or the user's role or territory. For example, a company may set up an assignment rule ...

  21. Assignment Rule Header

    The given AssignmentRule is applied for created Accounts, Cases, or Leads. TRUE and FALSE are not case-sensitive. If the header is not provided in the request, the default value is TRUE. The Assignment Rule header is a request header applied when creating or updating Accounts, Cases, or Leads. If enabled, the active assignment rules are used.

  22. Disable assignment rule(s) and default owner when using email-to-case?

    I've solved this as follows. Recognize that triggers run before assignment rules and E2C will run assignment rules. In before insert trigger, set custom field Bypass_Assignment_Rules__c to true for those use cases where assignment rules should be bypassed.; Create assignment rule (at position 1) that takes any Case with Bypass_Assignment_Rules__c = true and assign to a "in-transit queue"

  23. Assignment Rules, inline editing and Page Layout limitations

    Description. This article explains the necessary configuration and limitations of using inline editing and assignment rules. Lead/Case assignment rules' behavior when using inline editing depends on the settings of the page layout in question. Other save options, such as change owner notifications won't fire with inline edit either.