lightning:omniChannelWorkDeclined

Indicates that an agent has declined a work assignment.

NameTypeDescription
workItemIdstringThe ID of the object that’s routed through Omni-Channel. This object becomes a work assignment with a workId when it’s assigned to an agent.
workIdstringThe ID of a work assignment that’s routed to an agent.

This example prints work details to the browser’s developer console when an Omni-Channel user declines a work assignment.

Component code:

Controller code: