
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-17-2018 06:38 AM
I want to be able to identify which email notification sent a particular message so what I want to do is get the sysid of the notification and send it out inside of its own notification for each alert.
I tried the suggestions here: https://community.servicenow.com/community?id=community_question&sys_id=bd9470c8db139700fff8a345ca961955
but it either doesn't work or I am not understanding the execution...can anybody else think of a solution?
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-17-2018 07:02 AM
I believe you need to create the email script using below script and then call the email script in your email notification. try to print in logs and see what you get?
template.print('Email sys_id: ' + email_action.getUniqueValue());
gs.log('Email sys_id: ' + email_action.getUniqueValue());

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-17-2018 07:02 AM
I believe you need to create the email script using below script and then call the email script in your email notification. try to print in logs and see what you get?
template.print('Email sys_id: ' + email_action.getUniqueValue());
gs.log('Email sys_id: ' + email_action.getUniqueValue());
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-17-2018 07:32 AM
You've done it again! You are too good Shishir! 🙂
Thank you sir.