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

Shusovit Dutta
Tera Contributor

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
Giga 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.

If my answer finds you well, helpful, and related to the question asked. Please mark it as correct and helpful.

Thanks
dgarad

not working

please check the below link.

https://www.servicenow.com/community/developer-forum/access-to-api-setabortaction-from-scope-x-inmis...

If my answer finds you well, helpful, and related to the question asked. Please mark it as correct and helpful.

Thanks
dgarad