Task 3: (Optional) Adding or modifying notification templates
The following image shows the process of leveraging the notification engine on BMC Helix Innovation Suite:
Before you begin
- If you want to use locales supported by BMC Helix Digital Workplace but unsupported by the notification engine on BMC Helix Innovation Suite, you must add the languages to the Action Request System server and BMC Helix Innovation Studio before you can use them to create localized notification templates. To learn about the detailed steps to add the languages, see How to add a new locale in CTM: People form and Notification Template.
Make sure that the domain name of the
server is added to the email allow list.
For more information, see To whitelist HTML tags and domains in emails.
To add or modify notification templates
You can create only one notification template with an event name, a template name, a module, and a company combination.
- As an administrator, log in to BMC Helix Innovation Studio.
- Click the Administration tab.
- Select Notification Configuration > Manage Templates.
- Perform one of the following steps:
- To create a new notification template, click + Notification Template.
- To modify, copy the existing template then proceed with the modification.
- To create a notification template for a different company, copy an existing template.
Complete the following fields:
Field
Action
Example
Template Name
Specify a meaningful name for the template.
Module Name
Select DWP - Notification
Description
Provide a brief description of the email template
Default Notification Method
Do not change the default value Email.
Event
Select the event that you created earlier.
Status
By default, the status that you selected for the event is displayed. In the template, you can change the status to any of the following values:
- Enabled—The template is ready to use.
- Offline—The template is not available for use. You can enable it for use at any point.
- Delete—A template with the Delete status remains in the system, but it cannot be used in the application.
Important: The Proposed, Obsolete, and Archive statuses are deprecated and should not be used.
Company
- If you created a new template, the company you selected for the event is displayed by default. You cannot change the company in the template.
- If you copied a template, from the list of companies, select the company for which you want to create the template.
Recipients
(Optional) If you want to send email notifications to recipients other than the default ones, click Add Recipients.
- From the Recipient Type list, select Individual or Group.
- If you select Individual, search and select the name from the type-ahead list.
- If you select Group, search and select the group from the type-ahead list.
Important: The Record Data and Dynamic Data options are not applicable.
- Click Save.
The selected recipients are displayed in the Recipients section. - Select To, CC, or BCC for the recipients that you selected.
- Click Save.
To create the email template body, click the Email tab and complete the following fields
Field
Description
Subject
Specify the subject line for the template.
Body
Specify the email body for the template.
Supported variables:
- Header background color—$headerBgColorValue$
- Home page link in header—$headerHomePageLink$
- Product name in header—$headerProductName$
- Free Label (related to service pricing) —$freeLabelText$
- Details link—$viewDetailsLink$
- Color of the link in the footer—$footerLinkColor$
- Link to manager email notifications—$footerLinkToUserPreference$
- Imported SRDs (set to true for imported SRDs)—$isImportedSRD$
- BMC Helix Digital Workplace Catalog native service request—$isNative$
- Order description—$orderDescription$
Tips:
To learn how to add links or fields in the template, see To insert fields and add links in the email body.
- See Example of using variables and if-else conditions in the email template
- Click Save.
To localize a notification template
You can localize an email template in the Edit view. You cannot localize it in the Create view.
- As an administrator, log in to BMC Helix Innovation Studio.
- Click the Administration tab.
- Select Notification Configuration > Manage Templates.
- Click the template that you want to localize.
- On the Email tab, from the Locale list, select the locale in which you want to create the template.
For example, German. - Click +Localized Message to create an email subject and email body in the selected langauge.
- Click Save.
Example of using variables and if-else conditions in the email template
Example of using if-else condition to display an attachment
Display the attachments if they are added to a comment.
Attachments: $420003521$
#end
In the above condition,
- ("$420003521$") denotes the presence of attachments value by field ID.
- Attachments: $420003521$ denotes the attachments.
Where to go from where