How do Case Assignment Rules automate the triage and routing of incoming support tickets?
Answer
Basics: Triage means getting the right case to the right person quickly. Assignment rules do that from criteria such as Origin, Priority, Product or Account region. Only one assignment rule can be active per object at a time, but it can contain many ordered rule entries.
How it works:
- Setup > Case Assignment Rules > New; name it and mark Active.
- Add rule entries with an Order number, criteria (field filters or formula) and the assignee (user or queue) and an optional email template.
- Salesforce evaluates entries in ascending order; the first match assigns the case and stops. A final catch-all entry should handle everything else.
- Cases created through Web-to-Case or Email-to-Case use the active rule automatically; UI cases need "Assign using active assignment rule" checked; the case can also be re-run by editing with that option.
Advanced / deep dive: A rule can have a large number of entries (up to 3,000 per rule). Assignment to a queue allows pull-based work (agents take cases from a queue) while user assignment is push-based. Native round-robin is not provided; use Flow, Apex or Omni-Channel for skills-based or capacity-based routing, which is the modern service-routing approach. In Apex you must opt in with DML options; a plain insert does not trigger assignment rules. Flows that create or update cases also do not run assignment rules by default, so choose between rules and flow-based assignment deliberately, and avoid both competing. Assignment happens after before-triggers and validation and within the commit, then escalation and other automation can follow. Use queue membership, queue email, and queue routing configuration in Omni-Channel to avoid overloaded owners.
Code / config example:
// Run the active case assignment rule from Apex
Database. .DMLOptions();
opts.assignmentRuleHeader.useDefaultRule = ;
(Subject = , Origin = , Priority = );
c.setOptions(opts);
insert c;