Notifications

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:

  1. Open Studio and in the Create Application File wizard select Notifications | Email Template, as shown here, and click on the Create button:
  1. Fill in the new Email Template form with the following values:
    • Name: Booking Request Template
    • Travel: Booking Request
    • Subject: Travel Booking Request - ${number}
    • Message HTML: (As mentioned in the screenshot)
  1. Enter the following text in the Message HTML field:
        Travel Booking Request  
        Number: ${number}  
        Caller: ${u_caller}  
        Assigned to: ${assigned_to} 
  1. Leave the Message text and SMS alternate fields empty and click on the Create button.
  2. Once the template is saved, scroll down to the Notification-related list as shown here and click on the New button.

 

  1. Alternately, you can open the Create Application File wizard in Studio, select Notifications | Notification as shown here, and click on the Create button:
  1. In the Notification New record form, click on the Advanced View-related list at the bottom of the form, as shown here:
  1. This will bring up the advanced form view of the Notification table. Now fill in the form with the following values:
    • Name: Booking Request Assigned
    • Table: Booking Request
    • Type: EMAIL
    • Active: Checked
  1. Next, in the When to send tab, fill in the form with the following values:
  • Send when: Event is fired
  • Event name: x_8940_travel_book_assigned_to_notificat
  1. Now switch to the Who will receive tab and fill in the form with the following values:
  • Users/Groups in fields: Include Assigned to (+) in the Selected list
  1. Now switch to the What it will contain table and fill in the form with the following values:
  • Content type: HTML only
  • Email template: Booking Request Template

(Select the template we created in the previous step)

  1. Now click Create/Update to save the notification.

Going forward whenever the x_8940_travel_book_assigned_to_changed event is triggered by the business rule, the notification we just created will also be sent to the e-mail ID of the user that the booking request task is assigned to.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.220.11.34