ServiceNow Learning 37: Handling scripts on Global Tables in Scoped applications in ServiceNow.

Shamma Negi
Kilo Sage
Kilo Sage

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:

 

Unable to update record. Getting error "Write operation against '<table_name>' from scope '<scoped_a...

 

Client scripts on a scoped table in cmdb hierarchy with g_form methods like "setMandatory, setDispla...

 

Cross-scope access policy error for number field with GlideRecord API in script - Support and Troubl...

 

 

This is very common issue when best practice is not followed.

 

Hope this helps!

Please mark as helpful if it helps you.

 

Regards,

Shamma

Regards,Shamma Negi
0 REPLIES 0