Events for Omni-Channel
JavaScript can be executed when certain types of events occur in a console, such as when a user closes a tab. There are a few events that are specific to Omni-Channel. These events apply to Lightning Experience only.
-
lightning:omniChannelConnectionError
Indicates that a network connection issue occurred.
-
lightning:omniChannelLoginSuccess
Indicates that an agent has been logged into Omni-Channel successfully.
-
lightning:omniChannelStatusChanged
Indicates that an agent has changed his or her presence status in Omni-Channel.
-
Indicates that an agent has logged out of Omni-Channel.
-
lightning:omniChannelWorkAssigned
Indicates that an agent has been assigned a new work item.
-
lightning:omniChannelWorkAccepted
Indicates that an agent has accepted a work assignment, or that a work assignment has been automatically accepted.
-
lightning:omniChannelWorkDeclined
Indicates that an agent has declined a work assignment.
-
lightning:omniChannelWorkClosed
Indicates that the status of an AgentWork object is changed to Closed.
-
lightning:omniChannelWorkFlagUpdated
Indicates that an agent’s work item flag has been raised or lowered.
-
lightning:omniChannelWorkloadChanged
Indicates that an agent’s workload has changed. This includes receiving new work items, declining work items, and closing items in the console. It also indicates that there has been a change to an agent’s capacity or presence configuration, or that the agent has gone offline in the Omni-Channel utility.