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.

NameTypeDescription
statusNamestringThe name of the agent’s current presence status.
statusApiNamestringThe API name of the agent’s current presence status.
statusIdstringThe ID of the agent’s current presence status.