Scope Application Cross-scope access policy

avinash21
Mega Contributor

Hi All

I have built a scoped application which constitutes of few tables, when a record is inserted on one of the table , it inserts a record in the table X in global scope. a BR is written on this X table under scoped application on insert for aborting the insert if some condition matches.I found the below error when BR fires.

"Access to api 'setAbortAction' from scope 'x_0016_licence_man' has been refused due to the api's cross-scope access policy"

I have read other post on cross-scope access policy but did not found a valid solution to his problem , Can some one please help me in sorting this out.

TIA

19 REPLIES 19

Interesting. I don't have any ideas at the moment, but if something comes to mind I'll be sure to share it here.


This is expected behavior. Access to set abort action on the global table is blocked from scoped application.


Hello Avinash,



Let me know if that answered your question. If so, please mark my response as correct so that others with the same question in the future can find it quickly and that it gets removed from the Unanswered list. Thank you


How To Mark Answers Correct From Community Inbox


Hi,


I have a record producer which i have created in HR Application Scope. I am trying to create 2 HR Cases based on values selected by user. So, I intend to abort the action so as to prevent creation of the general one. But I keep on getting error message as "


Access to api 'setAbortAction' from scope 'sn_hr_sp' has been refused due to the api's cross-scope access policy  



Can you please let me know if this is possible?



Thanks


Sonali


What release of ServiceNow are you on? I just tried this in a scoped app (via script in a BEFORE BR) and had no issues.