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

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

 global business rule automatically create after code is published?

Hi Prashant,

Go to application picker on right hand side and select global in the application and then create BR

screenshot below

find_real_file.png

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

I see setAbortAction in this document. It does not work for me in scoped application though?