- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-23-2024 04:56 AM
The user is unable to open the attachment attached via the "Attachment" variable.
I tried to open the attachment with my admin account and It did work.
I am trying to download the attachment by impersonating an end user, but when I click on the attachments, it doesn't download but opens a new blank tab showing the sys ID of the attachment.
user has an ITIL role but still, he/she is not able to download the attachments.
These attachments are getting stored in the ZZ_YYsc_cart_item table.
Im not sure what should I check and what next steps should be taken
its affecting the instance and any help will be appreciated
Thank You!!
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-18-2024 04:13 AM
I got the solution for this
I created a READ ACl on the sys_attachement table
Type: Record
Operation: Read
Protection Policy: None
I had to check the correct table as due to the custom portal the attachment uploaded through variables gets stored in the 'ZZ_YYsc_cart_item'
following is the script
answer = getSCAttachmentReadAnswer();
function getSCAttachmentReadAnswer() {
if (current.table_name == 'ZZ_YYsc_cart_item')
return true;
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-18-2024 04:13 AM
I got the solution for this
I created a READ ACl on the sys_attachement table
Type: Record
Operation: Read
Protection Policy: None
I had to check the correct table as due to the custom portal the attachment uploaded through variables gets stored in the 'ZZ_YYsc_cart_item'
following is the script
answer = getSCAttachmentReadAnswer();
function getSCAttachmentReadAnswer() {
if (current.table_name == 'ZZ_YYsc_cart_item')
return true;
}

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-19-2024 12:39 AM - edited ‎11-29-2024 12:04 AM
answer = getSCAttachmentReadAnswer();
function getSCAttachmentReadAnswer() {
if (current.table_name == 'ZZ_YYsc_cart_item')
return true;
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-19-2024 01:06 AM
Hey Shubham,
you posted the same script what I did,
If my script helped you, then please mark it as helpful
Thank you
Gaurav Vaze
ServiceNow Developer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-06-2025 06:34 AM
Thanks for sharing this solution, we had this exact issue.