- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-28-2020 06:39 AM
I have a mail script that I am calling from notification but get a message script is not found. I tried to call it using scope name like ${mail_script:my_scope.getinfo} but did not work. How can i do this?
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-28-2020 04:42 PM
Hi,
Firstly, as others have mentioned, you shouldn't need to call your scope within the mail script, you just need the mail script name.
Secondly, I've seen this issue when people copy and paste code from somewhere else in to their notification.
Within your notification, please open that and go to the "What it will contain" tab, then click the "<>" (source code) button in the Message HTML section:
And check to see if there are any <span> tags, etc. around your mail script call. If so, please remove them.
Please mark reply as Helpful/Correct, if applicable. Thanks!
Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-09-2023 03:38 AM
hello @Allen Andreas
Just a quick thing to ask.
I have created 1 mail script in one of the scoped application not in Global and called this mail script in one the notification which is same scoped application.
I am trying accessing this scoped notification to my some other scope .
Outcome - Notification is working fine and accessible from different scope but mail script is not working as expected..
My query is - Are the mail scripts not accessible from different scopes

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-07-2020 11:17 PM
Hi there,
Did this solve your question? Or do we need to follow-up on this?
Please mark this answer as correct if it solves your question. This will help others who are looking for a similar solution. Also marking this answer as correct takes the post of the unsolved list.
Thanks.
Kind regards,
Mark
2020 ServiceNow Community MVP
2020 ServiceNow Developer MVP
---
LinkedIn
Community article list
Kind regards,
Mark Roethof
Independent ServiceNow Consultant
10x ServiceNow MVP
---
~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field