getAgentWorkload for Lightning Experience
Retrieves an agent’s currently assigned workload. Use this method to reroute work to available agents.
Component code:
Controller code:
This method returns a promise that, upon success, resolves to an object containing the following fields.
| Name | Type | Description |
|---|---|---|
configuredCapacity | number | The agent’s configured primary capacity (work that’s assigned to the current user) through Presence Configuration. |
currentWorkload | number | The agent’s currently assigned primary workload. |
configuredInterruptibleCapacity | Number | Indicates the agent’s configured interruptible capacity (that is, work that’s assigned to the current user) through Presence Configuration. |
currentInterruptibleWorkload | Number | Indicates the agent’s currently assigned interruptible workload. |