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

You will need to check the script and edit it according to what your field names are.



Create you an email script.


we titled ours   For_The_Administrator


so the email notification script would be   ${mail_script:For_The_Administrator}


you need to put   ${mail_script:For_The_Administrator}   in each email notification that you want it in.