Skip to main content

Omnichannel Question-

Hello Everyone,

Is there a way to update Omnichannel Status when we close the case tab or AgentWork is closed?

I could find out that getServicePresenceStatusId and setServicePresenceStatus methods are only accessible through sforce.console.presence i.e. within Javascript of VF page or lightning Components but not through APIs which makes it difficult since we need to trigger this on closure of record page.

Please let me know if anyone has developed similar requirement.

2 comments
  1. Apr 6, 2021, 11:26 AM
    Thanks @Bhavin Chauhan for your response. I tried this solution. However, I am not able to access the sforce through LWC. Seems like it's only accessible through VF page? For Aura Components, I had to switch to Omni toolkit but then we don't have any function like beforeUnload.
0/9000