servicenow email template, notification and notification email script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-29-2016 08:06 AM
Hi all,
I am working on email notifications, but found a strange issue. When I use email template, and try to include an email script in notification. I will receive a blank mail body.....looks like the template is not working.
But When I remove the mail script from notification, I can receive the notification with correct mail template content. Do any one know what's the issue?
The mail script is used to get a list of users who should be in Cc. My understanding is the template is used to define the mail content, should has nothing do to with the mail script as it's just generate a list of distribution list.
Pls guide how to fix this issue, thanks
- Labels:
-
Knowledge Management

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-29-2016 08:10 AM
You would have to call the mail script from the template. The way ServiceNow works with templates is if anything is in the subject or message html fields on the notification, it uses that rather than the template. You can't call a mail script from the notification itself and use a template with it. You would either have to call the mail script from the template or add the message html from the template into the notification itself.