I am having a challenge with a recent requirement from my support team. We implemented OmniChannel and AgentWork is being routed through Queues.
Their new requirement is this: When a Case is manually assigned to an agent through the change owner modal window in the Salesforce UI, the Case should show up in the "My work" tab of OmniChannel and be counted as part of their current capacity. Next to that the omni channel supervisor "Queues Backlog" Total Waiting number should be lowered with 1. And the "Assigned Work" should be updated with this manually assigned case. But this isn't happening when you assign a case manually which gives a wrong indication to supervisors.
I have managed to assign an AgentWork record to the User using this object and this is recognized in the "My work" tab via a flow. I have built a record triggered Flow to create a AgentWork
record when a case owner is manually changed from a Queue to an user with the UserId
of the AgentWork
set to the new case.OwnerId. Now this creates a new work item in the omni channel view under "My work".
The problem is: I'm not able to set the Queue
value on the WorkAgent
object.
This results in that the queue backlog "Total waiting" and the Assigned Work isn't updated in the OmniChannel Supervisor.
Has anyone else been successful in this kind of requirement?