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

Prashant More1
Kilo Contributor

HI ,

i have created business rule on cmn_location (Global) table   and  i want to call  setabortaction (true) method if error occured in bussines logic . but i am getting below error when setabortaction method is called. is there any other way to abort action for global table?

find_real_file.png

 

1 ACCEPTED SOLUTION

Ankur Bawiskar
Tera Patron
Tera Patron

Hi Prashant,

By any chance is this business rule created in some custom scope application. If yes then ServiceNow doesn't allow setAbortAction from other scope for global tables

Approach: Create that business rule in global scope

Mark Correct if this solves your issue and also mark Helpful if you find my response worthy based on the impact.
Thanks
Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

View solution in original post

5 REPLIES 5

Joe83
Kilo Contributor

Hi Ankur,

I am running into a similar issue here where the business rule that was created in scoped app is throwing the cross-scope error as shown in the beginning of this thread. I have a question though regarding the proposed solution here - if I create business rule in the global app will that get pushed up to the app store and be published there? I am working on a scoped app that will need to uploaded into app store once it's been tested and I wonder if global objects outside the scope app will be pushed into the app store. Kindly advise.

Thanks,

John