Newer Version Available

This content describes an older version of this product. View Latest

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 reason that the agent declined the work request.

Sample Code

Component code:

Controller code:

Response

This method returns a promise that, upon success, resolves to true and is rejected on error.