Newer Version Available
login for Lightning Experience
Logs an agent into Omni-Channel with a specific presence status.
Arguments
| Name | Type | Description |
|---|---|---|
| statusId | string | The ID of the presence status. Agents must be given access to this presence status through their associated profile or permission set. |
| callback | function | JavaScript method to call when the agent is logged in with the presence status associated with statusId. |
Sample Code
Component code:
Controller code: