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.

catalog requested item approval notification email template not pulling in requested_for

Les1
Tera Guru

On the legacy ootb email template= request.itil.approve.role   -used for our catalog Request (vs requested items) approvals, the usage of  ${requested_for} works to pull this into the notification email.

however, for approval requests of a Requested Item, it fails.  On these, ${sysapproval.opened_by}, ${sysapproval.short_description}  do work, just not the requested_for.   

please enlighten, and thank you

 

i'm also seeing issues with mail scripts between a 'legacy' ootb notification script and converting it to a new script but will save that for another question. Firstly would just like to pull in ${requested_for} on a approval notification for a Requested Item (vs Request)

 

1 ACCEPTED SOLUTION

Mike Patel
Tera Sage

Did you try ${sysapproval.request.requested_for}

View solution in original post

3 REPLIES 3

Mike Patel
Tera Sage

Did you try ${sysapproval.request.requested_for}

I could have swore i had tried that but must have not had it right. This worked perfectly, thank you.

Miguel Santiago
ServiceNow Employee
ServiceNow Employee

WOW Mike!  I thought that finally did it after several days of working on this.  It worked perfectly is the Ordered_by and requested_for is the same.  But, if requested by one person for another, then it fails.  It pulls the same as requested by

[Madrid release]
Here is my message setting: request.itil.approve.role for Approval Request notification

Short Description: ${sysapproval.short_description} 
Priority: ${sysapproval.priority} 
Requested For: ${sysapproval.request.requested_for}  
Requested By: ${sysapproval.opened_by}  
Total Price: ${sysapproval.price} 
 
Also, i haven't been able to get the short description to print the actual requested item.  Instead it displays the catalog item short desctiption. (which is what is calling for with ${sysapproval.short_description})
 
I've tried several other options but nothing works.  I am new to ServiceNow and am still learning.  Only been live since 8/2019 with Madrid being the only release I have worked on.
 
Thanks in advance for your knowledge sharing.
 
Miguel