
Assignment rules are a powerful feature within Salesforce to assist your team’s automation of its lead generation and customer support processes. Assignment rules in Salesforce are used to define to whom your leads and cases (customer questions, issues or feedback) are assigned based on any one of a number of specified criteria you determine.
Table of Contents
How you will create Assignment Rules in Salesforce?
How You Will Create Assignment Rules in Salesforce? Assignment rule in Salesforce is mainly for allocation process , It may be someone or team. Mostly all organizations will have a particular rule for the business purpose. Example: Organization has one web-to-case also generate HTML files for that then we are assigning that cases to someone.
How to create an assignment rule in quick find?
STEP 1: Create an assignment rule, Click Set up First (it will be in the top right corner) then type Assignment Rules in the Quick Find box. After that, based on your needs you can select lead assignment rules or case assignment rules. STEP 2: Now click the new entry, give the proper name for that.
What triggers a rule in Salesforce?
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.
What information should be included in an assignment rule?
Represents the type and description for the assignment rule. Represents the fields used by the rule. The name of the user or queue the item is assigned to. Advanced filter conditions that were specified for the rule. The items in the list that define the assignment criteria. The validation formula.

What is assignment rule in Salesforce?
An assignment rule in Salesforce is used to define to whom case or lead is assigned based on the specified criteria. Most of the organizations have one particular rule for the overall purpose. For example, there could on lead assignment rule for web-generated leads and one case assignment rule for the holiday use.
How to create a Salesforce validation rule?
How To Create Salesforce Validation Rules? To create an assignment rule, go to the Set up First and type Assignment Rules in the Quick Find box. After this, you may select either lead assignment rules or case assignment rules based on the requirements. Now select the new entry and give a proper name to the rule.
Salesforce Assignment Rule Creation
Let’s Begin, Must, you will have the professional, developer, or enterprise edition of the Salesforce. Otherwise its not possible for rule creation.
Rule Entries
STEP 1: Set the order in which this rule entry will be processed, Here you just enter the sort order using the input box
File Suffix and Directory Location
Assignment rules for an object have the suffix .assignmentRules and are stored in the assignmentRules folder. For example, all Case assignment rules are stored in the Case.assignmentRules file.
Version
AssignmentRules components are available in API version 27.0 and later.
AssignmentRule
Specifies whether the rule is active or not and its definition. Rules are processed in the order they appear within the AssignmentRules container.
Declarative Metadata Sample Definition
The following is an example file showing two assignment rules on the Case object:
Wildcard Support in the Manifest File
This metadata type supports the wildcard character * (asterisk) in the package.xml manifest file. For information about using the manifest file, see Deploying and Retrieving Metadata with the Zip File.
What Are Assignment Rules in Salesforce?
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:
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 rulesofficial link. Assignment rules in Salesforce trailhead Good luck for creating Assignment rules in Salesforce