SAS Alert Notification Templates

Editing Alert Notification Templates

The alert notification templates are deployed to the WebDAV repository on the SAS Content Server.
Note: You should keep a backup copy of the alert notification templates. If you need to refer to the default alert notification templates or to reload them to the WebDAV repository, then you can access them in the appropriate language directory in the SAS_HOME\SASWebInfrastructurePlatform\9.3\Config\Deployment\Content\Templates\notification directory.
To edit the alert notification templates using the SAS DAVTree utility, follow these steps:
  1. Launch the SAS DAVTree utility from the SAS_CONFIG\Web\Utilities directory.
    Note: You must have the JAVA_HOME environment variable defined on your system to run the SAS DAVTree utility.
  2. Select Filethen selectOpen to access the DAV Location dialog box.
  3. Enter the host name for the SAS Content Server in the DAV Location dialog box (for example, http://server:port/SASContentServer/repository/default)
  4. select OK to save the update alert notification template.
  5. The User Credentials dialog box appears. To connect to the WebDAV repository, enter an authorized administrative user name and password.
    To locate the alert notification templates in the WebDAV repository directory, expand the following folders:
    • sasdav
      • Templates
        • notification
          • en
    Note: The English version of the alert notification templates is located in the en directory. Select an appropriate directory for your localized version of the alert notification templates.
  6. Select an alert notification file that you want to edit.
  7. Drag the file from the DAVTree to your desktop.
  8. Edit the file and save your changes.
  9. Drag the file back to the appropriate folder in the DAVTree Utility.
For more information about using the DAVTree utility, see “Using the DAVTree Utility to Manage WebDAV Content” in the SAS Intelligence Platform: Web Application Administration Guide at http://support.sas.com/documentation/onlinedoc/intellplatform.

Adding Alert Notification Templates to the WebDAV Repository

To add an alert notification template in the DAVTree, follow these steps:
  1. Select the appropriate directory where you want to add the new alert notification template (for example, en).
  2. Select Editthen selectAdd.
    A confirmation dialog box appears.
  3. Select Yes.
    A new window appears.
  4. Select Resource and then enter the name for the new alert notification template. The name should include the file extension .st for string template support.
  5. Select OK.
To add content to the new template, right-click the newly added template in the directory tree, and then select Edit.

Adding Fields to Alert Notification Templates

When you configure the alert notification templates to add a new field, you must also add a corresponding data object and notification variable to the parent workflow template. Note that these fields are case-sensitive.
Note: Fields that are represented as an array of objects are shown in the alert notification as a comma-separated string.
To add fields to an alert notification template, follow these steps:
  1. Open the alert notification template for editing.
  2. Determine the field or fields that you would like to add to the alert notification template.
For example, to add the issue priority (ISSUEPRI) field to the SAS_Email_Message notification template, do the following:
  1. Open the SAS_Email_Message.st notification template for editing.
  2. Update the contents to include the issue priority ($ISSUEPRI$) field. Be sure to add the relevant field in all three template areas: html, text, and SMS.
    You can add other business object fields to the templates. You must add the $ character as a prefix or suffix to these fields in the notification templates.
  3. In SAS Workflow Studio, open the corresponding workflow template, and add a new data object to reflect the field that you added to the notification templates.
    Note: The data objects are case-sensitive.
  4. Add the new data object to the Notification Variables list for the Send Workflow Notification policy.

Configuring the Subject for an Alert Notification

To configure an alert notification subject, follow these steps:
  1. Start SAS Management Console and connect as a SAS administrator.
  2. In the Configuration Manager plug-in, right-click SAS Application Infrastructure, and then select Properties.
    The SAS Application Infrastructure Properties dialog box appears.
  3. Click the Settings tab, and then select Notifications from the list on the left of the dialog box.
  4. Select Custom in the Alert prefix type field.
  5. Clear the value in the Alert prefix field and then enter the desired value.
  6. Select OK to save the notification settings.
See Policy Usage Examples for a detailed example that leverages the SAS Template Service.