How to test for Cross Scope Access Privilege in Script?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-25-2023 02:47 PM
I have script which loops through tables, checking for things...
On some tables, I receive the following error when I attempt to query them.
I do NOT want to fix the issue. I do NOT want to add Cross Scope permissions. Please do not tell me how to do this.
I just want to AVOID these error messages and SKIP the tables which may cause them...
So, how IN CODE, do I test for cross scope access, so that I may avoid these messages?
I am already doing "if myGR.canRead() ... " but that is apparently not sufficient.
I'm sure this is an easy thing to do; I just don't know the right command / function.
Thank you!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2024 08:51 AM
Did you ever find a solution for this? I have the same interest when looping through tables, checking for "things".