As snc_external, Attachment variable not holding the attachment
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-06-2025 10:21 AM
When I try to submit a catalog item that was built for snc_external, I am able to go over and populate all variables except for the attachment ones.
When trying to upload the file , the file name never shows up in the variable as usually it will do
Once I added a file it shows there
and I see the temp entry in sys_attachment
But while doing this as snc_external.... after selecting the file , the variable shows like this
Even though a new temp entry was created on sys_attachment.
I have already reviewed ACLs on the sys_attachment table and sc_cart_item . I wonder if you have any other ideas.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-06-2025 07:17 PM
@Michael183 It seems that your user with snc_external role doesn't have the create ACL permissions on the sys_attachment table. Please create an ACL to address this and your external user will be able to upload the attachments.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-06-2025 07:36 PM
ensure the snc_external user has CREATE ACL on sys_attachment table
Also did you try with that user if they can add file to paper-clip icon and it moves to the target record?
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-17-2025 02:04 PM
Curious if you found a solution to this? I adjusted the create/read ACLs and that enabled attachments to the form but the catalog item attachment variable doesn't seem to work.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-17-2025 03:00 PM
Figured it out. The ACL has a script
answer = getSCAttachmentCreateAnswer();
function getSCAttachmentCreateAnswer() {
gs.log(current.table_name);
if (current.table_name == 'sc_cart_item') {
var tableSysId = current.table_sys_id;
var cartItemRecord = new GlideRecord("sc_cart_item");
cartItemRecord.get(tableSysId);
if (!cartItemRecord.isValidRecord() || cartItemRecord.canWrite())
return true;
}
return false;
}The problem lies in current.table_name == 'sc_cart_item'. For inline variable attachments, the
