# How do Case Assignment Rules automate the triage and routing of incoming support tickets?

**Topic:** Admin · **Difficulty:** Medium · **Tags:** Admin, Case Management, Assignment Rules

Read it on the site: https://www.forcechallenges.com/interview-questions/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:**
1. Setup > Case Assignment Rules > New; name it and mark Active.
2. Add rule entries with an Order number, criteria (field filters or formula) and the assignee (user or queue) and an optional email template.
3. Salesforce evaluates entries in ascending order; the first match assigns the case and stops. A final catch-all entry should handle everything else.
4. 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:**
```apex
// Run the active case assignment rule from Apex
Database.DMLOptions opts = new Database.DMLOptions();
opts.assignmentRuleHeader.useDefaultRule = true;
Case c = new Case(Subject = 'Printer down', Origin = 'Phone', Priority = 'High');
c.setOptions(opts);
insert c;
// For bulk, set the same options on each record or use Database.insert(list, opts)
```

**Hidden gotchas & must-remember points:**
- Only one active case assignment rule at a time.
- Rule entries evaluate in order; first match wins.
- Apex and Flow inserts do not run the rule unless DML options are set.
- Existing owner is not changed on edit unless the assignment option is checked.
- Queues must support the Case object to be assignable.
- A missing catch-all entry leaves cases with the creator or default owner.

**Best practice:** Keep entries ordered most specific to least specific, end with a catch-all queue, and move to Omni-Channel for capacity-based routing.

---
Source: ForceChallenges · last updated 2026-11-02
