ExamGecko
Question list
Search
Search

Question 22 - CAD discussion

Report
Export

When configuring the content of an Email Notification, which syntax should be used to reference the properties of an event triggering the Notification?

A.
${event.}
Answers
A.
${event.}
B.
${current.}
Answers
B.
${current.}
C.
${property name>.getDisplayValue()}
Answers
C.
${property name>.getDisplayValue()}
D.
${gs.}
Answers
D.
${gs.}
Suggested answer: A

Explanation:

https://www.servicenow.com/community/it-service-management-forum/email-notification/m-p/695221

When configuring the content of an Email Notification, the following syntax should be used to reference the properties of an event triggering the Notification:

event..ThisisthecorrectsyntaxtoaccessthepropertiesoftheeventrecordthattriggeredtheEmailNotification,suchasevent.name,event.parm1,orevent.parm2.Forexample,{event.parm1} will display the value of the first parameter of the event.

The following syntaxes are not correct for referencing the properties of an event triggering the Notification:

current..Thisisthesyntaxtoaccessthepropertiesofthecurrentrecordthatisassociatedwiththeevent,suchascurrent.number,current.shortdescription,orcurrent.state.Forexample,{current.short_description} will display the short description of the current record.

${property name>.getDisplayValue()}. This is the syntax to access the display value of a property of the current record, such as current.state.getDisplayValue(), current.assigned_to.getDisplayValue(), or current.category.getDisplayValue(). For example, current.state.getDisplayValue() will display the state of the current record in a human-readable format, such as New, In Progress, or Closed.

${gs.}. This is the syntax to access the properties of the GlideSystem (gs) object, which provides methods for performing system operations, such as gs.now(), gs.getUserID(), or gs.getProperty(). For example, gs.now() will display the current date and time of the system. References: Email Notifications, Email Notification Variables

asked 23/09/2024
Scott Lerch
27 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first