- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-15-2016 10:45 AM
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?
Solved! Go to Solution.
- Labels:
-
Scripting and Coding

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-15-2016 10:48 AM
Hi Don,
Yes, the email_action object will tell you what notification uses it.
See section 5 Scripting for Email Notifications - ServiceNow Wiki
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-14-2016 12:09 PM
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.