lightning:omniChannelWorkloadChanged
Indicates that an agent’s workload has changed. This includes receiving new work items, declining work items, and closing items in the console. It also indicates that there has been a change to an agent’s capacity or presence configuration, or that the agent has gone offline in the Omni-Channel utility.
| Name | Type | Description |
|---|---|---|
configuredCapacity | number | The configured primary capacity for the agent. |
previousWorkload | number | The agent’s primary workload before the change. |
newWorkload | number | The agent’s new primary workload after the change. |
configuredInterruptibleCapacity | number | The configured interruptible capacity for the agent. |
previousInterruptibleWorkload | number | The agent’s interruptible workload before the change. |
newInterruptibleWorkload | number | The agent’s new interruptible workload after the change. |
This example prints workload details to the browser’s developer console when an agent’s workload changes.
Component code:
Controller code: