Skip to main content

assignAlert

A Workflow Engine function that assigns an owner of in-scope alerts. Returns true if the function assigns at least one alert.

This function is available as a feature of the Add-ons v1.3 download and later.

This function is available for alert and enrichment workflows.

The workflow sweep up filter applies to this function.

Back to Workflow Engine Functions Reference.

Arguments

Workflow Engine function assignAlert takes the following arguments:

Name

Required

Type

Description

user

Yes

String

ID or username of the user to assign as owner. To specify a workflowContext key, prefix with "workflowContext." For example, "workflowContext.username"

Example

The following example demonstrates typical use of Workflow Engine function assignAlert.

To assign all in-scope alerts to the user "support", Set the following:

  • user: support

The UI translates your settings to the following JSON:

{"user":"support"}

A more likely scenario is where a previous action has identified an appropriate user and populated a workflowContext key, “username”. Here, the following arguments assign the in-scope alerts to the username stored in that key:

{"user":"workflowContext.username"}

In either scenario, if the function is able to assign at least one alert to the user, it returns true.