- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā05-07-2025 11:12 PM
When I'm trying to use my email script in email template
I'm getting
can I know the reason for this
Thank you
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā05-14-2025 03:16 AM
Thank you for marking my response as helpful.
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
⨠Certified Technical Architect || ⨠9x ServiceNow MVP || ⨠ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā05-08-2025 01:22 AM
can you please share the screen shot what you're getting in the mail body?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā05-08-2025 01:40 AM
can you please share the screenshot what you're getting in the body?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā05-08-2025 03:16 AM
Since the incident state in not "on hold", I am getting below email.
The script is correct. Re-check your configuration or share the screen shot of the notification you configured.
If this solution helped resolve your issue, please consider marking it as helpful or correct.
This will assist others in finding the solution faster and close the thread.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā05-08-2025 06:28 AM
I might be wrong, but you are using an email template, based on your screenshot, Unsubscribe and Prefeerences.
When using email template, the subject and message comes from the template.
And your mail_script is in the body of the message, which will not be used.
Try to put your mail_script in a blank message OR create a new template and add your script to the template.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā05-08-2025 12:56 AM
It worked for me. I hope your email script is not breaking somewhere, you need to debug that.
Share that email script and how are you invoking from email client template
Output: Native
Output: Workspace
Email Script
Email client template: invoking email script
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
⨠Certified Technical Architect || ⨠9x ServiceNow MVP || ⨠ServiceNow Community Leader