Fix Script against Scoped Applications

Hema2
Giga Contributor

Hi,

I have created Global Fix Script to create records in one of my scoped applications. But, I got below error.

"Security restricted: Create operation against 'x_486589_demo_scoped_application' from scope 'rhino.global' has been refused due to the table's cross-scope access policy"

 

Note: I have used 'update()' method to create records.

 

Later, I have created fix script in my scoped application then it worked.

 

Can anyone explain what cross-scope access policy, which is mentioned in above error?

 

Thanks in Advance!

 

Thanks,

Hema

14 REPLIES 14

Rajat singh2
Kilo Guru

Hi Hema,

 

Please go through this link and let me know if you still need clarification.

https://community.servicenow.com/community?id=community_question&sys_id=360c4b25db9cdbc01dcaf3231f96...

Rajat singh2
Kilo Guru

Hi Hema,

if you are calling a script include from your fix script, and if that script include is only accessible from its scope then this security issue log is fine.

PFA the screenshot and compare with your script

 

find_real_file.png

 

Mark Correct/Helpful if I answer your question

Rajat

Jaspal Singh
Mega Patron
Mega Patron

Hi Hema,

 

That's expected behavior of scoped applications unless you configure below for your scoped table.

find_real_file.png

Look for System Definition >> Tables from application navigator. Look for the required table & then configure it as above.

Once done when you create a fix script in Global scope or run a script in background script in Global scope it will function without any error.

Also, if you are inserting/creating a record from a script use .insert() instead of .update()

To understand it better in detail you can check link.

 

Hi Jaspal,

 

Thank you for your reply. I tried after changing my custom application table settings as mentioned but, still I see same error.

 

And, It was my typo mistake while I was posting this question. I have used 'insert()' method to create a record.

 

 

Thanks,

Hema