declineAgentWork for Lightning Experience
Declines a work item that’s assigned to an agent.
| Name | Type | Description |
|---|---|---|
workId | string | The ID of the work item that the agent declines. |
declineReason | string | The reason that the agent declined the work request. |
Component code:
Controller code:
This method returns a promise that, upon success, resolves to true and is rejected on error.