execute mid server script include from scoped application
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-19-2019 09:43 AM
I am trying to execute a MID server script include from a scoped application.
When I use var jp = new JavascriptProbe(this.midServer); I get ReferenceError: "JavascriptProbe" is not defined
When I use var jp = new global.JavascriptProbe(this.midServer); I get this error: Exception: JavaException: java.lang.SecurityException: Illegal access to private script include JavascriptProbe in scope rhino.global being called from scope.x_............
I've tried with the MID server in global scope and in the application scope.
Any assistance would be greatly appreciated
- Labels:
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-19-2019 09:56 AM
Hi,
This is because the script include JavascriptProbe must be accessible only from global scope; check that. you can make this and change accessible from all scope
Mark Correct if this solves your issue and also mark 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
02-19-2019 11:02 AM
The MID Server script include is in global when I called global.JavascriptProbe
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-20-2019 11:23 PM
Hi,
I am referring to the script Include JavascriptProbe and not mid server script include.
Regards
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
07-07-2021 02:55 AM
Hi. Did you manage to sort it out?