Salesforce Omni-Channel

Salesforce

How to get Agent configured and assigned Omni-Channel Capacity using Salesforce Omni toolkit API?

getAgentWorkload() from Omni toolkit can be used to get Agent configured and assigned Omni-Channel Capacity. Sample Code: <aura:component implements="flexipage:availableForAllPageTypes" access="global" > <lightning:omniToolkitAPI aura:id="omniToolkit" /> <lightning:card> <lightning:button label="Get workload" onclick="{! c.getAgentWorkload }" ....

Salesforce

How to set Omni-Channel status to Busy when Chat is accepted by the agents in Salesforce?

1. Create the following Lightning Aura Component. Component: <aura:component implements="flexipage:availableForAllPageTypes" access="global" > <lightning:omniToolkitAPI aura:id="omniToolkitId" /> <aura:handler event="lightning:omniChannelWorkAccepted" action="{! c.onWorkAccepted }"/> </aura:component> JavaScript: ( { onWorkAccepted : function( component, event, helper ....