Create an alert variable for an alert rule in RPA Hub

  • Rversion finale: Australia
  • Mis à jour 12 mars 2026
  • 1 minute de lecture
  • Create a variable to configure the messages of an alert rule.

    Avant de commencer

    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

    Pourquoi et quand exécuter cette tâche

    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.

    Procédure

    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.

    Alert variable form in RPA Hub

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

    Tableau 1. Alert variable form
    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:
          return { value: data}; 
    .

    This field appears when the Is Scripted option is selected.