Notifications can be scheduled to be autodelivered or sent when an event occurs. When an event is triggered, the GlideRecord object of the record that triggered the event is sent to the notification. This GlideRecord object is an important aspect of the event as it provides notification access to data fields available in the record, thus enabling developers to create dynamic e-mails with custom data fields. Before we create an e-mail action (notification), we will create an e-mail template.
The following steps show you how to create a new e-mail template:
- Open Studio and in the Create Application File wizard select Notifications | Email Template, as shown here, and click on the Create button:
- Fill in the new Email Template form with the following values:
- Name: Booking Request Template
- Travel: Booking Request
- Subject: Travel Booking Request - ${number}
- Message...