How to check the type of attachment user has attached in service portal as variable answer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-24-2023 06:48 AM
While requesting the catalog item if user has attached the file. I want to check the type of the attachment and allow only xlsx or pdf file type.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-24-2023 08:28 PM
you can use attachment type variable and allow only xlsx or pdf
Types of service catalog variables
allowed_extensions =xlsx;pdf
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-24-2023 08:29 PM
if you still want to use paper-clip icon then check this link where I shared script to know file extensions of attached file
So enhance as per that
Check attachment file type-client script
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