Use the notification scripts to dynamically change the parameters of the outgoing messages using the SimpleEmailOutbound class.
You can use the same script in multiple email notifications and notification templates. To do so, add a ${script:script_name} embedded script tag to the notification rule or to the related notification template. You can use the embedded scripts in the following scripts:
Subject
Message
Message (HTML)
Other
To create a notification script, complete the steps below:
Navigate to System Notification → Notification Scripts.
Click New and fill in the fields.
Click Save or Save and Exit to apply changes.
Notification Script form fields
Field
Mandatory
Description
Name
Y
A script name for later usage in notifications and templates. The name should not contain spaces.
To receive the values of the current and event objects, use dot-notation to address the properties relating to the column names and the current and Events (sys_event) tables. See the example below: