- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-24-2015 11:19 PM
Following error is received when accessing current.setAbortAction from a before business rule on sc_task table from within an scoped application,
"Access to api 'setAbortAction' from scope 'x_13487_xxxx' has been refused due to the api's cross-scope access policy"
Is there an alternate way to set abort action from within an application scope?
Amit
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-25-2015 04:06 AM
Hi Sergiu,
The system always enforces the following creation restrictions when a developer adds a configuration record belonging to another application scope. Please refer the below link for more info.
Creation Restrictions Across Application Scopes - ServiceNow Wiki
However the link you pointed is correct as we can use abort action on the custom tables created as part of the scoped application(their own scope).
Please let me know if you have any questions.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-24-2015 11:27 PM
I haven't worked on scoped app's but Wiki says that it works here
Scoped GlideRecord API Reference - ServiceNow Wiki
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-24-2015 11:37 PM
Kalai,
Wiki doesnt mention specifically wether it should work with scoped app or not.
After giving it a thought it kind of make sense that it would be restricted since I am trying to call it from a BR on sc_task table which is in the global space.
When I tries it from a business rule on one of the scoped app table it worked.
Amit

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-24-2015 11:57 PM
Dude. The link is about scoped gliderecord API

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-25-2015 01:05 AM
Hi Amit,
That is the expected behavior. You cannot abort the database transaction.
Scoped applications restrictions :
Business Rules |
|
I hope this answers your question.