Newer Version Available
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.
Response
| Name | Type | Description |
|---|---|---|
| configuredCapacity | number | The configured capacity for the agent. |
| previousWorkload | number | The agent’s workload before the change. |
| newWorkload | number | The agent’s new workload after the change. |
Example
This example prints workload details to the browser’s developer console when an agent’s workload changes.
Component code:
Controller code: