What is the function of Lead Assignment Rules in streamlining inbound sales pipelines?
Answer
Basics: They route leads by criteria such as country, state, company size, lead source or any field. Only one lead assignment rule can be active at a time; each rule has numbered entries evaluated in order, and the first matching entry assigns the lead. If no entry matches, the lead goes to the default owner (for example the Web-to-Lead default lead owner or the creating user).
How it works: Setup > Lead Assignment Rules > New. Add entries with an order number, criteria (field filters or a formula), the assignee (user, queue, or related user), and an email template to notify the new owner. Activate the rule. Rules run when: a Web-to-Lead form submits (when a rule is active), a user checks "Assign using active assignment rule" on the lead page or in the Data Import Wizard/Data Loader options, or code sets the assignment rule header.
Advanced / deep dive: Entries are evaluated top to bottom, and a final catch-all entry (no criteria) is a common safeguard. Queues must support the Lead object. Native assignment is criteria-based only; true round robin, load balancing or capacity-based routing requires Flow/Apex (round-robin counters), Omni-Channel-style tools or a lead-routing package. Territory-based assignment is a separate feature. Rules do not run on every update; reassign on edit only when the checkbox or header is used. In Apex use Database.DMLOptions dmo = new Database.DMLOptions(); dmo.assignmentRuleHeader.useDefaultRule = true; Database.insert(leads, dmo); and in the REST/SOAP API the Sforce-Auto-Assign header. Record-triggered flows that create leads do not automatically apply assignment rules unless you design for it, so verify behavior for your channel. Entry counts and criteria complexity have limits (verify current documentation). Case assignment rules are a separate, similar feature.
Code / config example:
List<Lead> leads = <Lead>{
(LastName = , Company = , Country = ),
(LastName = , Company = , Country = )
};
Database. .DMLOptions();
dmo.assignmentRuleHeader.useDefaultRule = ;
dmo.emailHeader.triggerUserEmail = ;
Database.SaveResult[] results = Database.insert(leads, dmo);