getExistingAlertId
A Workflow Engine function that retrieves the existing alert id for a triggering event (the alert the event would deduplicate with), and copies the id to the workflow context key workflowContext.alert_id
. The triggering event’s signature is used to retrieve the existing alert, and if no alert is found, the action returns false
.
This function is available as a feature of the Add-ons v2.5 download and later.
This function is available for event workflows only.
Back to Workflow Engine Functions Reference.
Arguments
Workflow Engine function getExistingAlertId
has no arguments.
Example
The following example demonstrates typical use of Workflow Engine function getExistingAlertId
.
On a triggering event, close the current alert and drop the event, preventing de-duplication.
getExistingAlertId
sendAlertToWorkflow
alertId
:workflowContext.alertId
engineName
: Alert Inform EngineworkflowName
: Close Alert
In the Alert Inform Engine create a workflow called “Close Alert” with the following action:
closeAlert