Catch Cross scope TABEL Assess Issues in Server Side Script - from Global any Scope
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-28-2025 07:56 AM
Trying to catch when I get a Cross Scope issue when accessing a table from a script in global.
All I want to do is know IF i cant access the requested table
If I do a GlideRecord or a GlideRecordSecure from Global to a Scope(any scope) where I have no priviliges there is no error thown.
I get a legit but EMPTY GlideRecord - this alone is not sufficitent for me to catch as my result
- canRead, canWrite and canCreate are return as true (using Admin).
try {} catch(){} will not catch this.
All I can see is a log entry saying that I have no Scope Priviliges.
Any Ideas.
And NO, setting up Scope Priviligies is NOT an option

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-28-2025 10:56 AM
GlideQuery can be used in a try catch and will throw an error if you're unable to write to a scope
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-02-2025 11:33 PM
That is not an option unfortunately!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-03-2025 12:02 PM
Interesting restriction, hope you find a solution
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-04-2025 05:42 AM
Me to!
My "work around" at the moment is
If
!my_gr.hadNext()
and if application !=global
I will treat is as if I cant read it due to cross scope issues and it has to be checked manually or excluded from further exekutions.