acceptAgentWork for Lightning Experience

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

NameTypeDescription
workIdstringThe ID of the work item the agent accepts.

Component code:

Controller code:

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