Newer Version Available
getServicePresenceStatusId for Lightning Experience
Retrieves an agent’s current presence status.
Sample Code
Component code:
Controller code:
Response
This method returns a promise that, upon success, resolves to an object, containing the following fields.
| Name | Type | Description |
|---|---|---|
| statusName | string | The name of the agent’s current presence status. |
| statusApiName | string | The API name of the agent’s current presence status. |
| statusId | string | The ID of the agent’s current presence status. |