ServiceNow Learning 37: Handling scripts on Global Tables in Scoped applications in ServiceNow.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-26-2023 03:07 AM
Hi All,
ServiceNow System allows to create client scripts, business rules etc. in scoped applications due to which if you by mistake write any script on global tables in scoped application which works in all the custom applications so make sure you do not write the any scripts on global tables, so it doesn't affect the other scoped applications.
See an example below:
I write a business rule in my task table that sets the assigne to field value to some users. Now due to this I get the below error of cross scope access as this BR is written in one scoped application however its running on global tables. So always remember "Never write any scripts on global tables in scoped applications"
Error received:
Read operation against 'TABLE' from scope 'SCOPE' has been refused due to the table's cross-scope access policy
https://docs.servicenow.com/csh?topicname=c_CrossScopePrivilegeRecord.html&version=latest
Helping Articles on this issue:
This is very common issue when best practice is not followed.
Hope this helps!
Please mark as helpful if it helps you.
Regards,
Shamma