CAD · Question #2
When configuring the content of an Email Notification, which syntax should be used to reference the properties of an event triggering the Notification?
The correct answer is A. ${event. <property name>}. This question asks about the correct syntax for referencing event properties within an email notification.
Question
When configuring the content of an Email Notification, which syntax should be used to reference the properties of an event triggering the Notification?
Options
- A${event. <property name>}
- B${current. <property name>}
- C${property name>.getDisplayValue()}
- D${gs.<property name>}
How the community answered
(37 responses)- A95% (35)
- B3% (1)
- C3% (1)
Why each option
This question asks about the correct syntax for referencing event properties within an email notification.
The syntax `${{event.<property name>}}` is the standard way to access properties of the event object that triggered the email notification, allowing dynamic content based on event data.
`${{current.<property name>}}` is used to reference properties of the *current* record (e.g., incident, change) related to the notification, not the event itself.
This syntax is incomplete and incorrect; while `getDisplayValue()` is a valid method for GlideRecord fields, it's not how event properties are initially referenced in this context.
`${{gs.<property name>}}` is used to access properties of the global GlideSystem object, not event properties.
Concept tested: Email Notification event property syntax
Source: https://docs.servicenow.com/bundle/utah-platform-administration/page/administer/notification/task/create-email-notifications.html
Topics
Community Discussion
No community discussion yet for this question.