Symantec Management Platform (SMP) Community

 View Only

How to add a token to the subject line of an Automation Policy e-mail? 

Aug 15, 2016 03:37 PM

Token format that can be used on the subject line of the Automation Policy is as follows:

%![Prefix:]Name!%

Prefix can be one of following:

  • global – generic global value
  • aup – generic Automation Policy item property
  • ds – Data Source field
  • sql – evaluate SQL query and use first column’s value from it
  • none

Name is the sub-name of the token, when the Prefix is defined, or the Task Management’s token name when the Prefix is not defined.

1. Name values for Prefix "global":

  1. date – long date format, e.g. “Thursday, July 21, 2016”
  2. sdate – short date format, e.g. “7/21/2016”
  3. time – long time format, e.g. “6:35:44 PM”
  4. stime – short time format, e.g. “6:35 PM”
  5. datetime – default Notification Server date-time format, e.g. “7/21/2016 6:35:44 PM”
  6. nsguid – GUID of the Notification Server computer

2. Name values for Prefix: “aup”:

  1. name – the name of the Automation Policy will be inserted as replacement
  2. guid – GUID of the AUP will be inserted
  3. creator – user name who created the policy
  4. modifier – user name who last modified the policy

3. Name values for Prefix: "ds":

Sub-name for Prefix "ds" is the name of the Automation Policy's “Data Source” field, and the possible values are as follows:

screen_1.png

For example, if you use the Active Directory Import Completed message as a trigger, and add the Notification Server Message as the token, you configure the options as follows:

screen_2.png

  1. Select Active Directory Import Completed as NS Message
  2. Select Message as Data Source
  3. Select Message processing as Evaluation Rule
  4. Configure Task to send an e-mail
  5. Edit input parameters as follows:

screen_3.png

After performing the Active Directory import, the subject line of the e-mail will be as follows:

screen_4.png

4. Name for Prefix “sql”:

  • name – the body of the SQL query

This token will execute SQL query and the first value from the first row of the result is given in the subject line of the e-mail.

Configure the subject as follows:

screen_5.png

The e-mail header will be as follows:

screen_6.png

5. Name without Prefix:

When no prefix is specified, the Task Management token will be searched and (if found) executed.

Configure the subject as follows:

screen_7.png

The e-mail header will be as follows:

screen_8.png

 

Note that this feature is available starting from IT Management Suite version 8.0 HF3.

Statistics
0 Favorited
9 Views
0 Files
0 Shares
0 Downloads

Tags and Keywords

Related Entries and Links

No Related Resource entered.