I have a requirement where we want to route customers by prioritising the owner or Sales Team of a matched contact/lead for Chat. As far as I can tell, I can't achieve this using standard Queue-based or Skill-based routing - is there a way that I could use an Apex Trigger or a Flow to redirect chats to the most appropriate agent and override the standard routing behaviour?

  • Hello! Dis you find any valid approach? – lopez.regalado.fj Oct 7 '20 at 19:53
  • @lopez.regalado.fj see the answer I've just posted. Would appreciate the vote if you found it helpful! I had to look through a lot of the documentation to figure out whether it was doable or not, and unfortunately it's not possible just on Salesforce. – dogsdontcare Oct 15 '20 at 1:14

I've had a look into this and it appears the only way to override the built-in routing solution is to use an external routing solution, as you cannot update any of the fields on the AgentWork record once it has been created as per the Omni Channel Documentation for the AgentWork object.

The PendingServiceRouting object does not support Apex Triggers as per the Omni Channel Documentation for the PendingServiceRouting object, so you can't change which agent the PendingServiceRouting object is associated with on-platform.

As a result there isn't a way to customise routing for Omni Channel work items on-platform without building an external routing solution.

  • I like it! really good point!, maybe that's the only way to go ahead but at the same time we need to add that logic out of salesforce....:( – lopez.regalado.fj Oct 16 '20 at 13:01

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.