Can we add both Email template and email script in Notification?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-15-2018 02:27 AM
Hi Developers,
The following is the scenario:
One email template is to be created for Notification that contains the fields of incident like inc number, description, priority,etc
Then while creating the notification, I have to use this template and along with it I have to add some static text as per the different notifications.
Eg1: Notification for incident creator: The below incident has been created: (the other data comes from template)
Eg2: Notification for Assignment group: The below incident has been assigned to your group : (the other data comes from template)
So many notifications are to be created with some changes using a template.
So for this I had tried using the email script along with the template. But both are not woking together. Seperately its working.
So, can any one let me know how can above be done.
Thanks in advance.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-15-2018 03:07 AM
Hi Snehal,
Any specific reason you cannot include the single line from email script to email template. This would avoid using 2 components.
If this could not be done since the email template is being used by other notifications then why not move the email template code into email script and use only email script and not to use email template.
Whenever you give your custom email body in message html field of notification and both email template the email body takes precedence and will show content based on that even though email template is present.
Mark Correct if this solves your issue and also hit Like and Helpful if you find my response worthy based on the impact.
Thanks
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-13-2024 02:43 AM
Hi Snehal
Did you ever get an answer to your question ?
I have the exact same use case.
I would also like to combine a notification text with the content of the more generic details in an template.
regards,