Newer Version Available
lightning:omniChannelStatusChanged
Response
| Name | Type | Description |
|---|---|---|
| statusId | string | The ID of the agent’s current presence status. |
| channels | string | JSON string of channel objects. |
| statusName | string | The name of the agent’s current presence status. |
| statusApiName | string | The API name of the agent’s current presence status. |
Example
This example prints status details to the browser’s developer console when an Omni-Channel user's presence status is changed.
Component code:
Controller code:
channel
The channel object contains the following properties:
| Name | Type | Description |
|---|---|---|
| channelId | string | Retrieves the ID of the service channel that’s associated with a presence status. |
| developerName | string | Retrieves the developer name of the service channel that’s associated with the channelId. |