declineAgentWork for Lightning Experience

Declines a work item that’s assigned to an agent.

NameTypeDescription
workIdstringThe ID of the work item that the agent declines.
declineReasonstringThe 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.