lightning:omniChannelWorkFlagUpdated

Indicates that an agent’s work item flag has been raised or lowered.

NameTypeDescription
workIdstringThe ID of a work item with the updated flag.
isFlaggedBooleanSpecifies whether the flag is raised or not.
messagestringOptional. A message associated with changing the flag.
roleUpdatedBystringThe role of the user who triggered this flag change. The value is AGENT or SUPERVISOR.
updatedBystringThe ID of the user who triggered this flag change.

This example prints a line to the browser’s developer console when an agent’s work item flag is raised or lowered.

Component code:

Controller code: