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.

catalogue item variables populate on notification body

poco
Tera Contributor

i want to populate catalogue item variables values populate on notification body 

i triggered notification by using event creation in workflow 

i wrote a email script and called in notification body but it's populate  only vendorname not value

var VendorName = current.variables.requested_by.getDisplayValue ();
    template.print('VendorName');
 
please guide me 

 

2 REPLIES 2

Jitendra Diwak1
Kilo Sage

Hi @poco,

 

Please try this template.print(VendorName). I remvoed the quotes.

 

Please accept my solution if it resolves your issue and thumps 👍 up

 

Thanks 

Jitendra 

Please accept my solution if it works for and thumps up.

Community Alums
Not applicable

Hi @poco ,

Please try below script 

var VendorName = current.variables.requested_by.getDisplayValue ();
    template.print('VendorName: ' + VendorName);// You have given VendorName in string, please try without script 

 

Please mark my answer correct and helpful if this works for you

Thanks and Regards 

Sarthak