getServicePresenceStatusId for Lightning Experience
Retrieves an agent’s current presence status.
Component code:
Controller code:
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. |