Unable to call mail script in scoped application

samadam
Kilo Sage

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?

1 ACCEPTED SOLUTION

Allen Andreas
Administrator
Administrator

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:

find_real_file.png

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!

View solution in original post

11 REPLIES 11

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 Roethof
Tera Patron
Tera Patron

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

LinkedIn