- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-16-2015 09:10 AM
I want to include the Notification name in outgoing emails, dynamically so I don't have to hard code it.
Is there a way to get at the Notification name with an email script?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-16-2015 09:42 AM
Hello Paul,
According to the documentation in the email scripts you have access to email_action which contains the GlideRecord for the email notification. Scripting for Email Notifications - ServiceNow Wiki
So it would be:
email_action.name
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-21-2015 06:35 AM
thanks. i think the part i was missing is that it has be within the template.print(email_action.name);
I was trying to use it within the context of ${email_action.name} directly on the email notification.