- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-20-2025 03:29 AM
While submitting a catalog item, I'm working on restricting the attachment type. If the attachment type is not .xlsx, we shouldn't be able to submit the request. I created a script include to get the attachment filename. But it's not working. The reason behind is sys_id of the attachment doesn't match.
The attachment is stored in Sys Attachment table. But I'm not sure of the Table Sys Id. It's not the catalog item sys_id.
Can someone please help me to get the Table sys Id? So, I can use this 'Table sys_id' to get the Attachment record using Glide Record.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-20-2025 05:13 AM
you will have to use DOM manipulation etc to get the file names which I won't recommend.
I believe I have answered your question.
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
‎03-20-2025 05:12 AM
@Ankur Bawiskar - Thanks for the suggestion. Instead of using the variable, Is there a way to restrict the file using OOB Add attachment icon.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-20-2025 05:13 AM
Thank you for marking my response as helpful.
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
‎03-20-2025 05:13 AM
you will have to use DOM manipulation etc to get the file names which I won't recommend.
I believe I have answered your question.
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