"is not in current application scope"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-26-2024 07:16 AM
In the script below, I'm trying to call GlideImportSetTransformMap API to create a map between a scoped table and the scoped Security Incident table. However I receive the following error when testing the function in a background script:
Script execution error: Script Identifier: null.null.script, Error Description: com.glide.script.fencing.CrossScopeAccessNotAllowedException: sn_si_incident is not in current application scope, Script ES Level: 200
var mapName = 'test map';
var myTable = 'test_staging_table';
var targetTable = 'sn_si_incident';
var gistm = new sn_impex.GlideImportSetTransformMap(mapName, myTable, targetTable);
I have created 3 cross scope privilege records between my app and the Security Incident Response scope for read, write, and create privileges on the sn_si_incident table - but still no luck. Any thoughts?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-26-2024 07:31 AM
What is the value of the 'in scope' field on the Scripts - Background page. Default is Global.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-26-2024 07:46 AM
The background script is running in my custom app scope.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-26-2024 07:48 AM
The functions that will serve as a wrapper to the GlideImportSetTransformMap will end up being in my app's scope.