- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-20-2018 01:19 AM
Hi All,
When I used 'GlideHistorySet' in one of the script include in my scopped application am getting the below error.
"Exception Message: JavaException: java.lang.SecurityException: GlideHistorySet is not allowed in scoped applications"
May I know the alternative method for 'GlideHistorySet' in scopped application.
Thanks in Advance!
Solved! Go to Solution.
- Labels:
-
Cost Management

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-20-2018 08:32 PM
To access the protected class, in GLOBAL you need to make a script include that runs the protected class. You need to ensure the new script include (in GLOBAL) is accessable to scopes. Then call the new Script Include (that is in GLOBAL) from your scope.
This is how you bypass that protection.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-20-2018 01:24 AM
If you need access to a Script include protected this way the simpliest way to access it is to make a new Script Include that wraps the call you want to make that is accessible to your scope.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-20-2018 08:23 PM
Hi Jacebenson,
Am already using the GlideHistorySet method in a new script include which was created in the custom scope. But still am facing the above mentioned error.
Thanks,
Suganya N

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-20-2018 08:32 PM
To access the protected class, in GLOBAL you need to make a script include that runs the protected class. You need to ensure the new script include (in GLOBAL) is accessable to scopes. Then call the new Script Include (that is in GLOBAL) from your scope.
This is how you bypass that protection.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-09-2024 12:11 PM
This was super helpful! We weren't allowed to develop in Global Scope so I was pleasantly surprised to find that SN already has a script include for this scenario!
/nav_to.do?uri=sys_script_include.do?sys_id=b98b791577d92110a8b1f335ae5a9955
Called it from a Scoped App widget like this:
new global.RecordHistoryDataGenerator().generateHistoryData("table name", sysID of record); // generate history set