Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

how to call ritm variables in email notification

Renu9
Tera Contributor

Hi All,

I am having a requirement to call variables details in notification when we are sending it to requester.

Please let me know how I can call the variables in notification.

 

Sample:

Hi <requested for>

Based on selection, these are the below details that are selected:

<calculated list>

 

Regards,

Support Team

 

The variables are :

1.is_monitor_required?

2.is_keyboard_required?

3.is_mouse_required?

 

 

7 REPLIES 7

Thats the complication ! 

 

a variable element contains multiple varaible which cannot be filtered unless you have a filter critera that matches, Eg: lets say you want to show all variable whose value is true.

 

or if its specific or static then you can simply use it like

 

${variables.name_of_the_variable} //replace "name_of_the_variable" with your variable name in your notification.


☑️ Please mark responses as HELPFUL or ACCEPT SOLUTION to assist future users in finding the right solution....

LinkedIn - Lets Connect

There is no need to complicate things just to add variables. Just add ${variables.[variable_name]} in the email body. Doing that through a script is only needed if you are sending the email triggering from a table other than the Requested Item or Catalog Task ones, if you want to add variables dynamically, or if you need some special format/conditions for them.

Thanks it helped me.