Create an alert variable for an alert rule in RPA Hub

task australia Updated Sep 10, 2026 1 min read create-alert-variable.md
Raw file servicenow.com

Create a variable to configure the messages of an alert rule.

Before you begin

You must do this task in the classic environment.

Create an alert rule. For more information, see Create an alert rule to generate custom notifications in RPA Hub.

Role required: sn_rpa_fdn.rpa_support_user, sn_rpa_fdn.rpa_developer, or sn_rpa_fdn.rpa_admin

About this task

Alert variable refers to a variable or parameter associated with alerts of RPA Hub. It serves as a dynamic token within alert messages, and its value can be linked to a table's field or determined through conditional scripting.

Procedure

  1. Navigate to All > Robotic Process Automation > Monitor > Alert Rules.

  2. Open an alert rule that you want to create and associate an alert variable to.

  3. In the Alert Variables related list, select New.

  4. On the form, fill in the fields.

  5. Select Submit.

Parent Topic:Alert rule and variable in RPA Hub

Alert variable form in RPA Hub

Use the Alert variable form to create a variable for an alert rule message configuration.

Field

Description

Variable Name

Name of the alert variable.

Alert Rule

Name of the alert rule.

Index

Order of the alert variables in the message.Default sort order for alert variables is ascending order.

Is Scripted

Option to verify the usability of the script. This option adds an advanced data fetch script.

Is Threshold value

Option to verify the usability of the threshold value.

Table

Field that indicates the table that is selected for this alert variable.For example, the bot process.

Field

Field of the table to be mapped.For example, the name of the bot process.

Script

Text field that accepts JavaScript code input and provides controls, such as syntax checking and formatting.For example, to return a value that is data for an alert variable, enter data as follows:

Text
      return { value: data};

.

This field appears when the Is Scripted option is selected.

Search documentation
Search document titles and file paths on the australia branch