How to validate the file attached to catalog before submitting the request
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-11-2024 12:42 AM - edited ‎06-11-2024 12:44 AM
I want to validate the attachment name, format and the data in the file before submitting the catalog request.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-11-2024 12:57 AM
Hi @Ramya Sanaboyi1,
This is highly not recommended by ServiceNow.
Please refer to the following thread:
Thank you, please make helpful if you accept the solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-11-2024 12:58 AM
@Ramya Sanaboyi1 Please refer to this thread https://www.servicenow.com/community/now-platform-forum/validate-attachment-type-of-a-catalog-item-t...
and check the responses provided by the experts.
Hope this helps.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-11-2024 01:34 AM
Hi @Sandeep Rajput , thanks for the reply.
I tried the script from this post, but it is working in the backend only. I need this to work in csm portal as well. Can you pls help

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-11-2024 02:26 AM
@Ramya Sanaboyi1 For Service Portal you can take cues from this question https://www.servicenow.com/community/developer-forum/check-the-content-type-of-attachment-on-service...