The Zurich release has arrived! Interested in new features and functionalities? Click here for more

regarding emails

shreya_3009
ServiceNow Employee
ServiceNow Employee

I have added an email script for an approval table in the email notification.When i am checking in preview notification its displaying correctly but when i submit original request and looking at the preview email in system logs i cant find that approval history table.Pls consider this as urgency

 

5 REPLIES 5

GlideFather
Tera Patron

Hi @shreya_3009,

 

I don't understand what's the issue? is it in rpeviewing or something is missing?

———
/* If my response wasn’t a total disaster ↙️ drop a Kudos or Accept as Solution ↘️ Cheers! */


basically i have to enhance the exisiting notification by adding approval history table where it pulls all the approver names,state of approval etc so i have created email script and added it in the existing notification,so when i verified it using preview notification button i am able to see the approval history table , but when i submit the request and see it in logs i am not able to see the table

 

ah you mean the notification content right?

 

Have you tried to log the mail script whether it is triggered? it seems like the preview triggers it always but the real situation doesn't.

 

you probably know this but just in case - in the preview you can choose between records without need of creating new to test it:

GlideFather_0-1758874262205.png

 

 

Perhaps it can help you find some patterns why some records (in preview) show it whil in fact it doesn't... so you can compare this and the logs of created records

———
/* If my response wasn’t a total disaster ↙️ drop a Kudos or Accept as Solution ↘️ Cheers! */


Nawal Singh
Mega Guru

Hi @shreya_3009 ,

 

can you please share more information or screenshot , here is the email script link please review

 

https://www.servicenow.com/docs/bundle/zurich-platform-administration/page/script/server-scripting/r...

 

Thank you!