Attachments - Allow only submit PDF format attachment with Max 5 MB size ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-29-2022 02:59 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-29-2022 03:02 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-29-2022 03:09 AM
What you have suggested is platform level change while here Venky only needs it for one record producer.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-29-2022 03:08 AM
Hi,
Check the question below, Ankur has answered a similar thing with CSV format. Will you need to tweak the script to suit your need but it gives the general idea
Check attachment file type-client script - IT Service Management - Question - ServiceNow Community
-Anurag
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-29-2022 03:15 AM
Hi,
why not do this instead and suggest this as solution to customer?
1) use variable of type Attachment and add the extensions it supports as variable attributes
allowed_extensions=pdf
Types of service catalog variables
If you don't wish to use that then you will have to use DOM manipulation somehow to know the file names and then check if all of those contain .pdf or not
regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader