Operations against 'sys_attachment' table not allowed for scoped applications?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-04-2019 01:17 PM
I have been working on the following process
1. Create a request item with an attachment
2. Create a business rule that create a record on a table in my scoped application, which has a reference to the request item
3. Business rule(after insert) gets the attachments linked to the request item, and duplicates the attachments using the newly created record and its table name.
I get the 3 following errors
Access to api 'put(sys_attachment.table_name)' from scope 'x_mpaii_sharepoint' has been refused due to the api's cross-scope access policy
Access to api 'put(sys_attachment.table_sys_id)' from scope 'x_mpaii_sharepoint' has been refused due to the api's cross-scope access policy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-04-2019 07:27 PM
Hi,
Do have a look on the application access settings for sys_attachment table; in order that other scope app script can read, create, delete, update; the checkboxes should be set to true for individual operations
Mark ✅ Correct if this solves your issue and also mark 👍 Helpful if you find my response worthy based on the impact.
Thanks
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-05-2019 04:19 AM
Hi Ankur,
I have gone in and done this already for Read/Write/Create and have had no lucks. Thanks for the suggestion though.
Eric
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-05-2019 05:10 AM
Hi,
What is the script you are trying to run?
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-05-2019 05:27 AM
I actually found the answer to my question - on the sys_attachment table, I needed to enable 'Allow configuration' as well. This is something that I have not found on other questions, so hopefully it helps someone one