TemperStack
Intermediate8 min readUpdated Mar 18, 2026

How to set up lead assignment rules on Salesforce

Quick Answer

Lead assignment rules in Salesforce automatically distribute leads to specific users or queues based on predefined criteria. Navigate to Setup > Lead Assignment Rules, create rule entries with criteria like location or company size, and activate the rule to automate lead distribution.

Prerequisites

  1. Salesforce administrator permissions
  2. Access to Setup menu
  3. Understanding of your organization's lead routing requirements
  4. Knowledge of user queues and territories
1

Access Lead Assignment Rules

Log into Salesforce and click the Setup gear icon in the top right corner. In the Quick Find box, type Lead Assignment Rules and select it from the results. Click New to create a new lead assignment rule.
Tip
Only one lead assignment rule can be active at a time in your organization.
2

Create the Assignment Rule

Enter a descriptive Rule Name such as 'Territory-Based Lead Assignment'. Check the Active checkbox if you want this rule to be active immediately. Click Save to create the rule framework.
Tip
Use clear naming conventions that describe the assignment logic for easier management.
3

Add Rule Entries

In the Rule Entries section, click New to create your first rule entry. Set the Sort Order (lower numbers are evaluated first). Choose your assignment criteria such as State/Province, Company, or Lead Source.
Tip
Rule entries are evaluated in order, so place your most specific criteria first.
4

Define Assignment Criteria

Select the Field to evaluate (e.g., Lead: State/Province), choose an Operator (equals, contains, starts with), and enter the Value. You can add multiple criteria by clicking Add Filter Logic and using AND/OR operators.
Tip
Test your criteria with sample data to ensure it captures the right leads.
5

Set Assignment Target

In the User or Queue section, select who should receive leads matching this criteria. You can assign to a specific user by selecting their name, or to a queue for team-based assignment. Click Save to complete the rule entry.
Tip
Use queues for better load balancing when multiple team members handle similar leads.
6

Configure Email Notifications

Check Send email to the owner if you want automatic notifications when leads are assigned. For queue assignments, check Send email to the members to notify all queue members of new lead assignments.
Tip
Consider notification frequency to avoid overwhelming users with emails.
7

Test and Activate the Rule

Click View next to your rule name to review all entries. Create a test lead that matches your criteria to verify assignment works correctly. If satisfied, ensure the rule is marked Active and deactivate any previous assignment rules.
Tip
Always test with sample data before activating rules in production environments.
8

Enable Automatic Assignment

Go to Setup > Lead Settings and check Use active assignment rule for web-to-lead forms. For manual lead creation, users must check Assign using active assignment rules during lead creation or use the Assign Leads button.
Tip
Document the assignment process for your team so they know when rules apply automatically versus manually.

Troubleshooting

Leads are not being assigned automatically
Verify the assignment rule is Active and check that Use active assignment rule is enabled in Lead Settings. Ensure the lead data matches your rule criteria exactly.
Wrong user receiving assigned leads
Check the Sort Order of your rule entries. Rules are processed from lowest to highest number, and the first matching rule wins. Adjust the order or refine your criteria.
Queue members not receiving email notifications
Verify that Send email to the members is checked in the rule entry and confirm that queue members have valid email addresses in their user profiles.
Assignment rule not working for imported leads
When using Data Loader or other import tools, ensure the assignmentRuleHeader is set to use active assignment rules, or manually run assignment after import using the Assign Leads button.

Related Guides

More Salesforce Tutorials

Other Tool Tutorials

Ready to get started with Salesforce?

Put this tutorial into practice. Visit Salesforce and follow the steps above.

Visit Salesforce