Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Notification scripts allow you to get email values or set them using the SimpleEmailOutbound class. 

Add a ${script:script_name} embedded script tag to the notification rule or to the related notification template. The fields below are available for the script embedding:

  • Subject
  • Message
  • Message (HTML)
  • Other

Adding an embedded script tag allows using the same scripts in multiple email notifications or notification templates.

To create a notification script, please complete the steps below:

  1. Navigate to System Notification → Notification Scripts.
  2. Click New and fill in the fields.
  3. Click Save or Save and Exit to apply changes.


Note

To locate where notification scripts are used, perform a search against the version list. For thisTo do so, please complete the steps below:

  1. Navigate to Configuration Pack → VCS Records.
  2. Click on the funnel icon  on the top to open the Condition Builder.
  3. Create a filter containing the conditions listed below:
    1. JSON Copy CONTAINS script:script_name
    2. Table Name IS NOT sys_notification_script
    3. Is Current IS Yes.

In step 3a, specify your script name after the "script:" declaration. For example, "script:stop_notifications".

The selection example is given on the screenshot below.