determine email notification from email script

dbaril
Tera Expert

I have several email notifications that call the same email script.   Is there a way to determine from the script which email notification called it?

1 ACCEPTED SOLUTION

Chuck Tomasi
Tera Patron

Hi Don,



Yes, the email_action object will tell you what notification uses it.



See section 5 Scripting for Email Notifications - ServiceNow Wiki


View solution in original post

10 REPLIES 10

Pradeep Sharma
ServiceNow Employee
ServiceNow Employee

Hi Don,



You can only search it at notification table level.


Please let me know if you have any questions.


Chuck Tomasi
Tera Patron

Hi Don,



Yes, the email_action object will tell you what notification uses it.



See section 5 Scripting for Email Notifications - ServiceNow Wiki


Thank you for your response.   i was able to access the notification name using email_action.name.


Learned something new today