Have notification content be dynamic

jboiteux
Kilo Expert

I am looking to show different support phone number(s) in the response email depending on the region of the person the email is being sent to.

3 REPLIES 3

Ankur Bawiskar
Tera Patron
Tera Patron

Hi Jean,



you can use email notification script and have script with if else condition.



Regards


Ankur


Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

Hi Ankur,



I was thinking the same.   Is there something out of the box that identifies a persons region or will I need to create a field for that?


nayanawadhiya1
Kilo Sage

Hello Jean,



Refer this -



https://developer.servicenow.com/app.do#!/training/article/app_store_learnv2_automatingapps_jakarta_...  



Using Dynamic Content

You can use dynamic content in the Subject, SMS Alternate, and Message HTML fields.


  • To dynamically reference a field value from the record that triggered the Notification, enclose the field name in ${ }: ${<field_name>}.
  • Use dot-walking to reference field values on related records: ${<field name containing related record>.<field name>}.
  • To reference the event parameters parm1 or parm2, use this syntax: ${event.parm1} or ${event.parm2}. (Only for notifications fired by events.)

Use the Select variables field to easily construct the dynamic syntax for fields from the record associated with the notification. Click a field in the Select variables tree to insert the field name and dynamic syntax into the message. Click the expand button (Click the plus to expand a related record) to open reference fields. Selecting fields from a related record creates the dynamic dot-walking syntax.


Add dynamic text syntax with the Select variables field