On LinkedIn I wrote today that in some companies being good at your job ends up being a punishment. You finish your tasks before your coworkers, and you get more work. Then managers are surprised when their best people lose motivation or leave. I run teams at EGA Futura and Vantegrate, and the longer version, in Spanish, is on EGA Futura Discover.

In many service teams the same pattern also shows up in how cases get routed. This post shows why Omni-Channel tends to send more cases to whoever closes them fastest, and how to see it with SOQL on AgentWork.

How Omni-Channel picks the next agent

Each queue linked to Omni-Channel has a routing configuration with a routing model:

  • Least Active sends the next work item to the agent with the lowest consumed capacity.
  • Most Available sends it to the agent with the largest gap between their total capacity (set in the presence configuration) and what they are currently working on.
  • If there is a tie, the item goes to the agent who received a work item the longest ago.

There is a second trigger that matters here. When an agent finishes a work item, Omni-Channel immediately checks whether there is pending work it can route to that agent.

Put both together and the result is predictable. The agent who closes cases faster frees capacity sooner, and every time they free it, the next case in the queue goes to them. The configuration works as designed. But if nobody looks at the numbers, your fastest agent quietly becomes the one carrying the team.

Who is closing the most

AgentWork holds one record per work assignment routed to an agent. This query shows volume and average handle time per agent in the last 30 days:

SELECT User.Name agent, COUNT(Id) closedItems, AVG(HandleTime) avgHandleTime FROM AgentWork WHERE Status = 'Closed' AND CloseDateTime = LAST_N_DAYS:30 GROUP BY User.Name ORDER BY COUNT(Id) DESC 

HandleTime is CloseDateTime minus the accept time. If the top of this list also has the lowest average handle time, you are looking at the loop described above.

Who is loaded right now

SELECT User.Name agent, COUNT(Id) openItems, SUM(CapacityWeight) usedUnits FROM AgentWork WHERE Status IN ('Assigned', 'Opened') GROUP BY User.Name 

CapacityWeight is the units of capacity a work item consumes. If your routing configurations use percentage of capacity instead of units, sum CapacityPercentage.

To compare that with the maximum each agent can take, UserServicePresence has ConfiguredCapacity:

SELECT User.Name, ConfiguredCapacity, ServicePresenceStatus.MasterLabel FROM UserServicePresence WHERE IsCurrentState = true 

What to do with it

I would not start by changing the routing model. Least Active and Most Available both reward the agent who frees capacity first, and that is a reasonable way to keep queues short.

What changes is the conversation. With the first query you know who is generating more value than the rest, measured in closed cases. That person should get better growth opportunities, more autonomy, recognition and better pay, and not just a longer queue. The data is already in the org, and it takes one query to get it.

If you also want to see how work is split across projects and people inside Salesforce, at EGA Futura we build a native ERP for Salesforce. The Spanish companion piece on Hashnode covers the same question for Tasks and Cases without Omni-Channel.

Juan Manuel Garrido, founder of EGA Futura