accesss to api 'setAbortAction' from scope '' has been refused due to the api's cross=scope access

Shusovit Dutta
Tera Expert

I am getting an error "accesss to api 'setAbortAction' from scope '' has been refused due to the api's cross=scope access policy" 

When I write current.setAbortAction(true) in a scoped BR. I have tried creating a cross scope wrt. this article: setAbortAction is not working in Scoped applicatio... - ServiceNow Community, also checked Scope Application Cross-scope access policy - ServiceNow Community

 but no luck. 

3 REPLIES 3

dgarad
Tera Sage

Hi @Shusovit Dutta 

you need to Give cross-scope access to any of the APIs which does not have cross-scope access.

Navigate to Application cross-scope access:

 

dgarad_0-1715338809092.png

 

Create a New record in your application scope

dgarad_1-1715338852245.png

Source Scope and Application should be your custom Application.

not working