Salesforce Case Assignment Rules: A Setup Guide
Set up Salesforce case assignment rules the right way: queues first, entries in order, the ways cases skip the rule, and what to build for load balancing.
Salesforce case assignment rules decide who owns a support case the moment it arrives. Set up well, they are the cheapest routing you will ever run. Set up badly, they send every case to one person, quietly skip half your inbound channels, and leave a queue nobody watches. This tutorial walks through the setup, then the gaps, and ends with what to build (or hand to your AI on Sentinel Workspace) once the native rule runs out.
My position, up front: assignment rules should route cases to queues, not to people. The rule is excellent at sorting. It is bad at choosing a specific human, because it knows nothing about who is busy, who is out, or who already has twelve open cases. Let the rule sort into the right bucket. Build the choosing separately.
How case assignment rules work
The model is small, and knowing its shape prevents most of the bugs.
- The rule. A container. You can create several, but only one case assignment rule is active at a time. Activating a new one deactivates the old one.
- Rule entries. Each entry is criteria plus a destination: “cases that match this go to that user or queue.” Entries have a sort order.
- First match wins. Salesforce checks entries from the top and stops at the first one the case matches. If nothing matches, the case goes to the default case owner set in Support Settings.
Each entry can use filter criteria (up to 25 of them) or a formula that returns true or false. Each entry can also carry an email template that notifies the new owner, and a Do Not Reassign Owner option that keeps the current owner when the case is later re-evaluated.
That’s the whole engine. Everything below is about using it well.
Before you start: build the queues
If your rule entries point at named users, every vacation, resignation and reorg becomes a rule edit. Point them at queues instead, and staffing changes become membership changes.
Create one queue per real team, not per possible category. A good starting set for a small support org might be three: Tier 1, Tier 2 (or Technical), and Billing. In Setup, search Queues, click New, give it a label, add Case to the supported objects, add members, and set a queue email if the team shares an inbox. Trailhead’s case queues and assignment rule project walks the same clicks with screenshots.
Two more pieces of prep:
- Set the default case owner in Support Settings to a queue, not a person. That’s where unmatched cases land, and a person on vacation is a terrible catch-all.
- Set the Automated Case User to a system or integration user so that automated ownership changes in case history aren’t attributed to whichever admin happened to configure it.
Step 1: create the rule
In Setup, search Case Assignment Rules, click New, name it something you will recognize in a year (“Support Routing v1”), check Active, and save.
Then resist the urge to add entries immediately. Write the routing table on paper first: one row per destination, the condition that sends a case there, and which rows overlap. Overlap is the thing that bites you in the next step.
A habit worth adopting: number entries in tens (10, 20, 30) instead of 1, 2, 3. When you need to slot a new entry between two old ones, you can, without renumbering the whole rule.
Step 2: add entries, most specific first
Here is a typical first routing table, written in the order it should live in the rule:
- Type equals Billing, and Origin equals Email → Billing queue
- Priority equals High, and Product equals Platform → Tier 2 queue
- Account tier (a formula reading the account) equals Enterprise → Tier 2 queue
- Type equals Billing → Billing queue
- Catch-all (no criteria, or a formula that is always true) → Tier 1 queue
Because the first match wins, order is the entire game. Put a broad entry like “Type equals Billing” above the narrow email-billing one and the narrow one never fires. Put the catch-all anywhere but last and everything below it is dead code.
For each entry, pick the email template if the team wants a notification. When the destination is a queue, the email goes to the queue email address and the queue members, so check that the queue email isn’t a shared inbox nobody reads before you turn on notifications for a busy channel.
Step 3: decide about Do Not Reassign Owner
This checkbox matters more than it looks. Without it, any time the rule runs again on an existing case, it can move ownership even though an agent has already picked the case up.
When does the rule run again? When someone edits a case with “Assign using active assignment rule” checked, or when an integration updates cases with the assignment option turned on. A data fix on a hundred cases can quietly shuffle a hundred owners.
My default: check Do Not Reassign Owner on entries for cases that agents take from a queue and work themselves. Leave it unchecked only where you deliberately want re-evaluation, for example an entry that moves cases to Billing when an agent changes the type to Billing.
Step 4: make sure the rule actually runs
This is where most “assignment rules don’t work” tickets come from. The rule exists, it’s active, and cases still land on the default owner. Usually it’s because the case arrived through a door that didn’t ask for the rule.
Cases created in the UI. Agents see an “Assign using active assignment rule” checkbox on the case edit page, but only if the page layout shows it. In the Case page layout’s Layout Properties, show the checkbox and set it to checked by default. If agents log phone cases and they all end up owned by the agent, this is why.
Web-to-Case and Email-to-Case. Both can apply the active assignment rule, and case assignment rules are designed to cover them. Still, confirm in your own org that a test submission lands in the right queue before you trust it.
Cases created by code or integrations. This is the big one. A case inserted through Apex or the API doesn’t run assignment rules unless the code asks for it. In Apex that means setting Database.DMLOptions with assignmentRuleHeader.useDefaultRule = true before the insert, as described in the AssignmentRuleHeader reference. The same page notes a quiet detail: on API version 30.0 and later, if no rule applies, the case stays unassigned rather than going to a predefined default owner.
Cases created by a flow fall in the same bucket. The Create Records element has no switch for assignment rules, so the usual fix is a small invocable Apex action the flow calls, which re-saves the case with the DML option set. Test a flow-created case in your sandbox. If it lands on the flow’s running user, that’s the gap.
Step 5: test the routing table, not just the rule
One test case proves the rule is on. It doesn’t prove the order is right. In a sandbox, create one case per row of your routing table, plus one case designed to match two rows, plus one designed to match nothing.
Check three things for each: the owner, whether the notification arrived, and whether editing the case afterward moves it. The two-row case tells you whether your order is right. The no-match case tells you whether your default owner is a queue someone watches. The edit test tells you whether Do Not Reassign Owner is set where you think it is.
Then repeat the test through every door: UI with the checkbox, web form, email, and whatever integration creates cases. Five minutes per door, once, saves a month of “why did this go to Dave.”
What case assignment rules can’t do
Here’s where the sorting machine stops being a routing system.
Load balancing. The rule can’t look at workload. “Send it to whichever Tier 2 agent has the fewest open cases” isn’t a criterion it can express. Salesforce’s answer at scale is Omni-Channel, which routes work by capacity and presence. That’s the right tool for a contact center. For a team of six, it can be more configuration than the problem deserves.
Availability. The rule doesn’t know who is out today. A case routed to a named person sits until they return. (This is the strongest argument for queues.)
Memory. The rule doesn’t record why a case went where it went. Three weeks later, when someone asks why an enterprise case sat in Tier 1, you’re reconstructing logic from the rule’s current entries, which may have changed since. Field history on the owner helps with the who and when, and field history tracking is worth turning on for that field alone, but it won’t tell you which entry matched.
Re-routing over time. A case that’s been in Tier 1 for six hours doesn’t move unless something moves it. That’s the job of case escalation rules, which pair naturally with assignment: assignment decides where a case starts, escalation decides what happens when it stalls there.
What to build in the gap
Each gap above has a small build that closes it. None is a big project, which is exactly why they never reach the top of a developer’s queue.
A queue picker. Keep assignment rules sorting cases into queues. Then a small automation takes each new case from the queue and assigns it to the eligible member with the fewest open cases, skipping anyone marked out. It’s the same least-loaded pattern used for round-robin lead assignment, pointed at cases instead of leads.
A routing reason field. A text field on the case stamped at assignment: “Entry 30, Enterprise account → Tier 2.” Now the question “why did it go there” is answered on the record, permanently, even after the rule changes.
An assignment option for code-created cases. One small, tested Apex helper that every integration and flow uses to create cases with the assignment rule turned on. One place to get it right instead of six.
A daily unassigned report. A scheduled email listing every open case still owned by the default queue, so a routing miss is noticed the next morning instead of the next quarter.
The question of which router should own a field is worth settling before you build any of this. The lead assignment rules vs Flow comparison covers that decision for leads, and the reasoning carries over to cases: one system decides the owner, everything else reads it. The Flow vs Apex post covers which tool fits each build.
Handing the build to your AI
Every build above fits in a paragraph, and that’s the point. Here’s the queue picker as a brief:
“When a new case lands in the Tier 2 queue, assign it to the active Tier 2 member with the fewest open cases, skipping anyone with Out Today checked. Stamp the reason in Routing Reason. Write the tests, deploy to the sandbox, and show me five test cases before anything goes to production.”
That brief needs an AI that can build in your org, not just answer questions about it. Sentinel gives your own AI (Claude, or any assistant that speaks MCP) that ability: it connects to your Salesforce org, writes the Apex and the tests, and deploys sandbox first, with every change logged and a snapshot taken before each deploy. That doesn’t stop a mistake from happening. It means you can see exactly what changed and get back to where you were. If Salesforce is your main system, the Sentinel for Salesforce overview covers what teams typically build first, and connecting Claude to Salesforce covers the setup.
The takeaway
Set up case assignment rules this week, and set them up to sort, not to choose. Queues first, a queue as the default owner, entries ordered from most specific to the catch-all, Do Not Reassign Owner where agents own their work, the assignment checkbox on by default, and a test through every door a case can arrive by.
Then build the choosing: a queue picker, a routing reason, one helper for code-created cases, and a morning report of anything that slipped through. That’s the difference between cases that land in a bucket and cases that land with the right person.
Sentinel Workspace lets your own AI build those pieces into your org, sandbox first and fully logged. Pricing is flat per Sentinel and is covered on a short demo call.
KEEP READING
Assign Salesforce Cases to the Account Owner
How to assign a case to the account owner in Salesforce: why assignment rules can't, the after-save flow that can, and the fallbacks that keep it working.
Salesforce Case Escalation Rules: Setup and Limits
Salesforce case escalation rules take 20 minutes to set up. Here is the setup, the three clocks you can pick, and what to build when one timer falls short.
See Sentinel Workspace build in your own CRM on a short demo call.
Book a Demo Call