Use notification variables to display dynamic information in the body of a notification such as a field value, a link to a record, or a link to system preferences.

Syntax

Specify a notification variable using this syntax:

${variable-name+variable-parameters}

The variable-name portion is always required. Not all notification variables support the variable-parameters portion. When available, most variable parameters are optional. See the list of available notification variables for variable names and available parameters.

Available variables

The system provides these notification variables.

Examples

Refer to the following examples to see how each notification variable is rendered in the output:
Variable Example
${field-name}

Source: Incident ${number} - comments added

Output: Incident INC1000001 - comments added

${image-field-name}

Source: <img src='${picture}?t=medium'/>

Output:notification image variable

  • ${URI}
  • ${URI_REF}

${URI} Source: Click here to view incident: ${URI}

${URI} Output: Example that shows how the link text word Link serves as the link to the current record

${URI_REF} Source: Click here to view incident: ${URI_REF}

${URI_REF} Output: Example that shows how the link text displayed is the value of the record

  • ${reference-field.URI}
  • ${reference-field.URI_REF}
Source:
Click here to view Incident: ${URI_REF}
Click here to view Related Problem: ${problem_id.URI_REF}

Output: Example that shows a link to a record listed in a reference field

${CMS_URI}

Source: ${CMS_URI+ess/incident_detail}

Output: a link to a target CMS page such as https://<instance name>.service-now.com/ess/incident_detail.do?sysparm_document_key=incident,46e18c0fa9fe19810066a0083f76bd56

${notification:body}

Source: How a variable for the email body works in an email layout.

Output:How the variable for the link to notification preferences works.

${mail_script:script-name}
${NOTIF_UNSUB}
${NOTIF_PREFS}