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.

NameTypeDescription
configuredCapacitynumberThe agent’s configured primary capacity (work that’s assigned to the current user) through Presence Configuration.
currentWorkloadnumberThe agent’s currently assigned primary workload.
configuredInterruptibleCapacityNumberIndicates the agent’s configured interruptible capacity (that is, work that’s assigned to the current user) through Presence Configuration.
currentInterruptibleWorkloadNumberIndicates the agent’s currently assigned interruptible workload.