How to validate attachment file name and its format in Service Catalog?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-16-2020 12:09 PM
Hello everyone,
I have a requirement to validate the attachment filename and the format, when submitting a request in Service Catalog. It should validate the name as, "filename.xlsx", if it's not the correct filename or format. It should give error message to user and user should not be able to submit a request without proper filename convention. How can I accomplish this using Catalog Client Script? Thank you

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-16-2020 10:49 PM
Hi there,
You flagged Orlando, though who knows you might upgrade soon to Paris. If so, maybe the Variable type Attachment helps you on this?
You could use on that attributes for file size and extensions allowed.
Kind regards,
Mark
2020 ServiceNow Community MVP
2020 ServiceNow Developer MVP
---
LinkedIn
Community article list
Kind regards,
Mark Roethof
Independent ServiceNow Consultant
10x ServiceNow MVP
---
~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field