Source: https://www.vtfriday.com/2026/11/salesforce-omni-channel-routing.html
Case, messaging, voice, or Lead records to the right agent using Queue-Based, Skills-Based, or Omni-Channel Flow routing.
🔑 Key points
- Assignment Rules still drop incoming records into a Queue or hand them to an Omni-Channel Flow, and Omni-Channel pushes those waiting records to online agents in real time.
- Every Omni-Channel setup relies on five linked pieces: Service Channels (which objects route), Routing Configurations (priority, work size, and routing model), Presence Configurations (agent capacity caps), Presence Statuses (Online and Busy states), and the Omni-Channel utility in the console.
- Two capacity models control when an agent's slot frees up. Tab-Based Capacity releases capacity when the console tab closes, while Status-Based Capacity keeps capacity consumed until a picklist field changes (such as
Case.Statusmoving toWaiting on CustomerorClosed). - Least Active routes to the agent with the lowest consumed capacity, whereas Most Available routes to the agent with the largest amount of remaining free capacity.
- Standard Omni-Channel was retired in the Summer '26 release. Orgs now run on Enhanced Omni-Channel, which requires modern channels like Messaging for In-App and Web (MIAW), Enhanced Messaging, and Enhanced Bots instead of legacy Chat (Live Agent).
Suppose Agent Priya logs into the Service Console and switches her Presence Status to Available - All Channels. Her Presence Configuration sets her maximum capacity to 6 units.
1. An inbound Messaging session arrives (weighted at 2 units) along with two Technical Support cases (weighted at 2 units each).
2. Omni-Channel pushes all three items to Priya. Her consumed capacity hits
2 + 2 + 2 = 6 units (100% full).3. While Priya sits at 6 units, the router skips her and pushes the next incoming Priority 1 case to another available agent.
4. Meanwhile, a VIP ticket enters the queue requiring both
German (Skill Level 8) and Billing skills. Omni-Channel holds that ticket in the backlog until an online agent with both ServiceResourceSkill assignments frees up at least 2 units of capacity.
🧱 How Salesforce Omni-Channel architecture works
Without Omni-Channel, records sit inside a Queue list view until someone clicks "Accept" or manually changes OwnerId. That pull model works fine for a five-person desk, but once volume grows, agents naturally grab quick password-reset tickets while leaving messy escalations untouched. Two agents also end up opening and editing the same ticket at the same time.
As outlined in the Salesforce Omni-Channel Administrator Guide, Omni-Channel turns those passive queues and flows into an active push router. Because exact limits depend on your Salesforce Edition, test any routing changes in a sandbox before touching production.
1. The five configuration layers
To move a record from intake onto an agent's screen, Salesforce checks five setup objects in sequence:
- Service Channels (
ServiceChannel): Registers which Salesforce objects can be push-routed, such asCase,MessagingSession,VoiceCall,Lead, or a custom object. This is also where you pick Tab-Based or Status-Based capacity for that object. - Routing Configurations (
QueueRoutingConfig): Sets how waiting items behave in the queue. You configure Routing Priority (lower numbers like1route before2), Work Item Size (either fixed Units of Capacity or a Percentage of Capacity), Push Time-Out (how many seconds an agent gets to accept before the item reroutes and optionally flips the agent to Busy), and the Routing Model. - Presence Configurations (
PresenceUserConfig): Assigned to users or profiles to set each agent's total Capacity (say, 6 units for Tier 2 specialists and 10 units for Tier 1 generalists), sound alerts, and whether agents can decline pushed work. - Presence Statuses (
ServicePresenceStatus): The options agents pick in the Omni-Channel widget. Each status is either Online (tied to one or more Service Channels, such as "Available - Cases Only" or "Available - Voice & Messaging") or Busy (such as "On Break" or "In Training," which pauses new pushes without logging the agent out). - Queues, Skills, or Omni-Channel Flows: Connects incoming records to a Routing Configuration. When a record enters a linked Queue or runs an Omni-Channel Flow with a
Route Workaction, Salesforce creates aPendingServiceRoutingrecord. Once an agent accepts the push, Salesforce creates anAgentWorkrecord to track handle time and capacity.
2. Least Active vs. Most Available routing models
People mix up Least Active and Most Available all the time in architecture reviews. When every agent has the same capacity, both models behave identically. The difference shows up as soon as agents have different maximum capacities, such as a Senior Agent with 10 units and a Junior Agent with 5 units:
- Least Active sends the next item to the agent holding the lowest amount of consumed capacity. If the Senior Agent currently holds 4 active units (out of 10) and the Junior Agent holds 2 active units (out of 5), Least Active picks the Junior Agent because
2 consumed < 4 consumed. - Most Available sends the next item to the agent with the largest amount of unused open capacity (
Total Capacity - Consumed Capacity). In that same scenario, the Senior Agent has10 - 4 = 6 free unitswhile the Junior Agent has5 - 2 = 3 free units, so Most Available picks the Senior Agent.
3. Enhanced Omni-Channel and legacy channel retirements
Salesforce moved Omni-Channel onto Hyperforce with Enhanced Omni-Channel. Per the Standard Omni-Channel Retirement notice, Standard Omni-Channel retired in Summer '26. Orgs running on Hyperforce without active legacy Chat or Standard Messaging channels were upgraded automatically; orgs that did not upgrade cannot log in to Omni-Channel or Omni Supervisor until they switch to Enhanced.
Running Enhanced Omni-Channel means keeping your channels and network rules current:
- Replace legacy Chat (Live Agent) with Messaging for In-App and Web (MIAW). Enhanced Omni-Channel does not support legacy Live Agent chat.
- Replace Standard Einstein Bots and Standard Messaging channels (SMS, WhatsApp, Facebook Messenger) with Enhanced Bots and Enhanced Messaging routed through Omni-Channel Flows.
- Make sure your corporate firewall allowlists the SCRT2 domain (
*.salesforce-scrt.com) required by Enhanced Omni-Channel. - Update agent training for the Unified Inbox inside the Omni-Channel utility and the Wallboard view in Omni-Channel Supervisor (and note that the old "Transfer Skills" button on the widget is not part of Enhanced).
⚖️ Comparing the three Omni-Channel routing methods
Salesforce gives you three main ways to push work through Omni-Channel. The right choice depends on how many attributes your routing rules need to combine:
| Routing Method | How Work Is Matched | Strengths | Limitations and When to Avoid |
|---|---|---|---|
| Queue-Based Routing | Work lands in a Salesforce Queue linked to a Routing Configuration; Omni pushes to available members of that Queue. |
Fastest to set up and easy to reason about when teams map cleanly to single-skill buckets (such as Billing Queue or Tier 1 Queue). | Breaks down when you combine multiple dimensions (5 products x 4 languages x 3 tiers = 60 queues to maintain). |
| Skills-Based Routing (Rules or Apex) | Attaches SkillRequirement records to a PendingServiceRouting item and matches them against agents' ServiceResourceSkill records. |
Avoids queue explosion, supports proficiency levels, and lets secondary skills drop off after a timeout so work does not stall. | Requires ongoing upkeep of ServiceResource and ServiceResourceSkill records as people join or switch teams. |
| Omni-Channel Flow | A specialized Flow triggered at intake that uses the Route Work action to route dynamically to a Queue, Skill set, Bot, or specific agent. |
Centralizes routing for Voice, Messaging, and Cases, and can query related CRM records before picking the destination. | Needs proper fault handling so an unhandled Flow error does not leave incoming work stranded. |
🛠️ Practical implementation: programmatic skill routing and diagnostic SOQL
Declarative Skills-Based Routing Rules and Omni-Channel Flows cover most teams, but some orgs calculate skills in Apex (for example, combining product entitlements with an external risk score). Per the SkillRequirement Object Reference, programmatic skills-based routing uses a strict three-step DML sequence: insert PendingServiceRouting with IsReadyForRouting = false, insert child SkillRequirement records, and then update IsReadyForRouting = true.
Below is an illustrative Apex service method showing that bulkified pattern, followed by diagnostic SOQL queries for checking stuck items. This code requires testing in your sandbox first, with Enhanced Omni-Channel and Skills-Based Routing enabled, a ServiceChannel for Case, and active Skill records. Note that a work item can only have one active PendingServiceRouting record at a time, and if you mark skills with IsAdditionalSkill = true, configure a drop-off timeout on the routing configuration or DropAdditionalSkillsTimeout so secondary skills actually relax when no exact match is online.
/**
* Illustrative Example: Programmatic Skills-Based Routing in Apex
* Prerequisites: Enable Enhanced Omni-Channel & Skills-Based Routing in Setup.
* Ensure a ServiceChannel for 'Case' and active Skill records exist.
* Requires testing in a sandbox environment before production deployment.
*/
public with sharing class OmniSkillRouterService {
public static void routeCasesWithSkills(List<Case> casesToRoute, Set<String> skillDeveloperNames) {
if (casesToRoute == null || casesToRoute.isEmpty() || skillDeveloperNames == null || skillDeveloperNames.isEmpty()) {
return;
}
// 1. Retrieve the Case ServiceChannel Id
ServiceChannel caseChannel = [
SELECT Id
FROM ServiceChannel
WHERE RelatedEntity = 'Case'
WITH USER_MODE
LIMIT 1
];
// 2. Query the requested Skill records
Map<String, Skill> skillMap = new Map<String, Skill>();
for (Skill sk : [
SELECT Id, DeveloperName
FROM Skill
WHERE DeveloperName IN :skillDeveloperNames
WITH USER_MODE
]) {
skillMap.put(sk.DeveloperName, sk);
}
// 3. Insert PendingServiceRouting records with IsReadyForRouting = false
List<PendingServiceRouting> psrList = new List<PendingServiceRouting>();
for (Case c : casesToRoute) {
psrList.add(new PendingServiceRouting(
CapacityWeight = 2,
IsReadyForRouting = false,
RoutingModel = 'MostAvailable',
RoutingPriority = 1,
RoutingType = 'SkillsBased',
ServiceChannelId = caseChannel.Id,
WorkItemId = c.Id,
PushTimeout = 30
));
}
Database.insert(psrList, AccessLevel.USER_MODE);
// 4. Attach SkillRequirement children to each PendingServiceRouting record
List<SkillRequirement> skillReqs = new List<SkillRequirement>();
for (PendingServiceRouting psr : psrList) {
for (Skill sk : skillMap.values()) {
skillReqs.add(new SkillRequirement(
RelatedRecordId = psr.Id,
SkillId = sk.Id,
SkillLevel = 5,
IsAdditionalSkill = true, // Allows skill to drop after timeout if no exact match is online
SkillPriority = 1 // Higher numbers drop first; lower numbers (such as 0) drop last
));
}
}
if (!skillReqs.isEmpty()) {
Database.insert(skillReqs, AccessLevel.USER_MODE);
}
// 5. Flip IsReadyForRouting = true so Enhanced Omni-Channel begins pushing the work
for (PendingServiceRouting psr : psrList) {
psr.IsReadyForRouting = true;
}
Database.update(psrList, AccessLevel.USER_MODE);
}
}
After running your routing logic in a sandbox (whether via Apex, Queue, or Flow), execute these read-only SOQL queries in the Developer Console or VS Code to see whether items are sitting in the backlog or actively pushed to agents:
// 1. Inspect waiting items in the Omni-Channel backlog (PendingServiceRouting) SELECT Id, WorkItemId, RoutingType, RoutingPriority, CapacityWeight, IsReadyForRouting, CreatedDate FROM PendingServiceRouting ORDER BY CreatedDate DESC LIMIT 20 // 2. Inspect pushed and active work items assigned to agents (AgentWork) SELECT Id, UserId, User.Name, WorkItemId, Status, CapacityWeight, AssignedDateTime, AcceptDateTime FROM AgentWork ORDER BY CreatedDate DESC LIMIT 20
- Trap 1: Leaving legacy Chat or unmigrated orgs on retired Standard Omni-Channel. Because Standard Omni-Channel retired in Summer '26, orgs that never migrated off legacy Live Agent Chat or Standard Messaging cannot log agents into Omni-Channel until those channels move to MIAW and Enhanced Messaging.
- Trap 2: Using Tab-Based Capacity for multi-day email cases. Under Tab-Based Capacity, the second an agent closes the Case tab in the Service Console, Omni-Channel frees up that slot and pushes another ticket, even when the first case is still
In Progress. For asynchronous cases, configure Status-Based Capacity so capacity releases only whenStatusmoves toWaiting on Customer,Escalated, orClosed. - Trap 3: Forgetting Profile or Permission Set access for Presence Statuses. Creating a
ServicePresenceStatusin Setup does not make it appear in the Omni-Channel widget. You must enable it on each user's Profile (under Enabled Service Presence Status Access) or Permission Set, or their status dropdown stays empty. - Trap 4: Stacking strict skills without an Additional Skill drop-off. Requiring four rigid skills (
Enterprise + French + Linux + Billing) when nobody online holds all four leaves the case stranded indefinitely. Mark secondary skills as Additional Skills with a timeout and priority so the router relaxes them after a wait window. - Trap 5: Running heavy synchronous automation on
OwnerIdchanges. Accepting an Omni-Channel push updates the record'sOwnerIdfrom the Queue to the User, firing Case or Lead triggers and Record-Triggered Flows. Keep owner-change logic lean so high-velocity chat or voice acceptance does not hit Apex governor limits.
Rule: Use Enhanced Omni-Channel to push work to online agents based on Presence Status, Capacity, and Priority. Stick to Queue-Based routing for simple team buckets, and use Skills-Based or Omni-Channel Flow routing when matching multiple attributes.
Benefit: Stops list-view cherry-picking, balances workloads across the floor, and gives leads live backlog visibility in Omni-Channel Supervisor.
When to reach for it: Small, low-volume teams can start with Queues and Assignment Rules. Turn on Enhanced Omni-Channel once you add live channels (MIAW, Voice) or need capacity-aware and skill-aware distribution.
Tradeoff: Needs active capacity tuning and agent discipline around Presence Statuses. Bad capacity weights or agents forgetting to switch to Busy during breaks will either flood reps or stall the queue.
Hard limits: Standard Omni-Channel is retired as of Summer '26, making Enhanced Omni-Channel mandatory. Under Status-Based Capacity, Omni-Channel can assign up to 100 total work items (paused and in-progress combined) per service rep. For bulk historical cleanup outside real-time routing, use Batch Apex instead of pushing old records through live agent queues.
❓ Core Q&A and architecture scenarios
A: Build the setup in eight steps:
- In Setup > Omni-Channel Settings, confirm Enhanced Omni-Channel and Skills-Based Routing are turned on, and enable Status-Based Capacity if cases stay open across multiple sessions.
- Create a
ServiceChannelfor theCaseobject and map whichStatusvalues count as In-Progress, Paused, and Completed. - Create a
Routing ConfigurationwithRouting Priority = 1(so high-priority work drains first), set the Routing Model toMost Available, and set the capacity unit weight per case. - Create your
Skillrecords in Setup, create an activeServiceResource(ResourceType = 'A') for each agent, and assign their skills viaServiceResourceSkill. - Use an Omni-Channel Flow (with
Add Skill RequirementsandRoute Work) or Skills-Based Routing Rules to attach the required skills and Priority 1 Routing Configuration when a high-priority case comes in. - Configure Presence Configurations to set each agent tier's total capacity cap and push time-out behavior.
- Create an Online
ServicePresenceStatus(such as Available - Cases) linked to the Case Service Channel, and grant access via Profiles or Permission Sets. - Add the Omni-Channel utility widget to the Lightning Service Console app for agents, and give supervisors access to Omni-Channel Supervisor to watch live queues and skill backlogs.
A1: Check Omni-Channel Supervisor alongside PendingServiceRouting records to pinpoint which side is off:
- When agents are overloaded: Compare the agent's total capacity in their Presence Configuration against the Work Item Size in the Routing Configuration. Either lower total capacity or raise the unit weight on heavier channels (for instance, setting a live Messaging session to 3 out of 6 units). Also check whether the channel is still on Tab-Based Capacity while agents close tabs on unfinished cases, or whether Status-Based Capacity is releasing capacity on an active status by mistake.
- When work sits unassigned in the backlog: Check four bottlenecks in order:
- Verify agents are signed in with an Online Presence Status tied to that Service Channel, and confirm they have object and record permissions.
- Verify the Queue holding the record is linked to an active Routing Configuration (or that your Omni-Channel Flow is actually firing).
- Open the Skills Backlog tab in Omni Supervisor to see if the waiting item demands a skill combination or proficiency level that zero online agents hold. Add Additional Skills with a drop-off timeout if needed.
- If every qualified agent is at 100% capacity, configure an Overflow Assignee on the Queue or a fallback path in your Omni-Channel Flow.
A2: Yes. In most orgs they work one after the other rather than replacing each other:
- Case Assignment Rules (or Omni-Channel Flows) run at creation to categorize the record and set
OwnerIdto the right Queue, such as Billing Queue or Tier 2 Queue. - The Queue holds ownership of the waiting record while it sits in the backlog and provides a clean reporting and security boundary.
- Because that Queue points to an Omni-Channel Routing Configuration, Omni-Channel generates a
PendingServiceRoutingrecord and pushes the ticket out of the Queue to an individual agent the moment capacity opens up. Assignment Rules choose the bucket; Omni-Channel chooses the person.
A3: Enhanced Omni-Channel runs on Hyperforce, replaces the split New / My Work tabs with the Unified Inbox utility, adds Wallboard views in Omni Supervisor, supports paused work states under Status-Based Capacity, and is the only version getting new Service Cloud and Agentforce routing features.
Run through five checks after upgrading:
- Confirm no active routing configurations or console apps still depend on retired Legacy Chat (Live Agent), Standard Messaging, or Standard Einstein Bots. Everything should run on MIAW, Enhanced Messaging, and Enhanced Bots.
- Have test users from every support profile log out of Omni-Channel, refresh the console, log back in, and toggle between Online and Busy statuses (and verify
*.salesforce-scrt.comis allowlisted on corporate networks). - Test end-to-end routing with a sample
Case,MessagingSession, andVoiceCallto verify that Queue, Skills, and Omni-Channel FlowRoute Workactions createPendingServiceRoutingrecords and pop in the Unified Inbox. - Accept a work item, move it to a paused status, and close the tab to confirm Status-Based and Tab-Based capacity update as expected.
- Verify supervisors can see live agent statuses and queues in Omni Supervisor, and test any custom components calling the Omni-Channel Toolkit or Lightning Console JavaScript APIs.
Q1. Agent A has a maximum capacity of 10 units and currently holds 4 units of active work (6 units free). Agent B has a maximum capacity of 6 units and currently holds 2 units of active work (4 units free). A new 2-unit case arrives. Who receives the case under Least Active vs. Most Available?
A1. Under Least Active, Agent B gets the case because Agent B has less consumed capacity (
2 active units < 4 active units). Under Most Available, Agent A gets the case because Agent A has more free capacity (6 free units > 4 free units).Q2. You created a new Presence Status called "Available - Escalations" and added the Omni-Channel widget to the Service Console, but agents say the new status does not appear in their dropdown menu. What did you miss?
A2. You need to grant access to that Presence Status on the agents' Profile or Permission Set under Enabled Service Presence Status Access.
🔗 Next step: connecting Omni-Channel routing to SLA milestones
A: Combine Entitlement Milestones with Secondary Routing Priority to push aging tickets to the front of the line before they breach. In Omni-Channel Settings, enable Secondary Routing Priority and map it to a field on Case, then use a Milestone Warning Action or Record-Triggered Flow to bump that field when a First Response milestone nears its deadline. Routing Configuration Priority decides which queue drains first, while Secondary Routing Priority decides which individual record inside that queue pushes next, letting a ticket 15 minutes from an SLA breach jump ahead of newer cases waiting in the same queue.
Comments
Questions, corrections and your own experience are all welcome.
Post a Comment