Newer Version Available
closeAgentWork for Lightning Experience
Changes the status of a work item to “Closed” and removes it from the list of work
items in the Omni-Channel utility.
Arguments
| Name | Type | Description |
|---|---|---|
| workId | string | The ID of the work item that’s closed. |
| callback | function | JavaScript method to call when the work item associated with the workId is closed. |
Sample Code
Component code:
Controller code: