getAgentWorkload
In API version 35.0 and later, we can retrieve an agent’s currently assigned workload. Use this method for rerouting work to available agents.
| Name | Type | Description |
|---|---|---|
callback | function | JavaScript method to call when the agent’s configured capacity and work is retrieved. |
This method is asynchronous so it returns its response in an object in a callback method. The response object contains the following properties:
| Name | Type | Description |
|---|---|---|
success | Boolean | true if retrieving the agent’s work items was successful; false if retrieving the agent’s work items wasn’t successful. |
configuredCapacity | Number | Indicates the agent’s configured primary capacity (work that’s assigned to the current user) through Presence Configuration. |
currentWorkload | Number | Indicates the agent’s currently assigned primary workload. |
configuredInterruptibleCapacity | Number | Indicates the agent’s configured interruptible capacity (work that’s assigned to the current user) through Presence Configuration. |
currentInterruptibleWorkload | Number | Indicates the agent’s currently assigned interruptible workload. |