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
‎11-18-2021 09:02 AM
I had to modify the application access on the table to allow delete operations from a scoped flow action. In addition to that, I also created an Application Cross-Scope Access record to get it working. Thanks for the comment, it saved me a headache!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-01-2023 06:18 AM
Any chance you could share the application cross-scope access records. I'm running into the same issue and have tried everything mentioned here.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-23-2023 03:20 AM
Did you manage to find any workaround?
I have the same issue: ' Error - Write operation against 'sys_attachment' from scope 'sn_hr_core' has been refused due to the table's cross-scope access policy'
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-06-2023 05:18 AM
Hi Rahul, my response may be helpful.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-06-2023 05:16 AM - edited ‎12-06-2023 05:20 AM
I found the AttachmentActionsUtil script include to be helpful for copying a single attachment.
var AttachmentUtil = new global.AttachmentActionsUtil();
var inputs = {
fromObj: attachmentGlideRecord,
table: <target_table_name>,
toObj: <target_sys_id>
};
AttachmentUtil.copyAttachments(inputs);
I believe GlideSysAttachment.copy() can be used to copy all attachments from 1 record to another.