Newer Version Available
declineAgentWork for Lightning Experience
Declines a work item that’s assigned to an agent.
Arguments
| Name | Type | Description |
|---|---|---|
| workId | string | The ID of the work item that the agent declines. |
| declineReason | string | The provided reason for why the agent declined the work request. |
| callback | function | JavaScript method to call when an agent declines the work item associated with the workId. |
Sample Code
Component code:
Controller code: