Excel upload / validation via catalog item variable before submitting the catalog request
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 hours ago
hi @Ankur Bawiskar
I’m working on a Service Catalog item with the following variables:
Attachment variable – used to upload an Excel file
List Collector variable – used to store users
The uploaded Excel file contains only two columns:
User Name
User ID (primary key; corresponds to sys_user.upn)
Requirement
When a user uploads the Excel file via the attachment variable:
The system should read and validate all rows in the Excel file against the sys_user table using the User ID.
If every entry in the Excel file is valid:
Populate the List Collector variable with the corresponding users.
If any single row contains an invalid or non-existent User ID:
Prevent the catalog item from being submitted.
Display a clear list of invalid entries on the catalog form so the user can correct the Excel file and re-upload it.
Key Constraint
Validation must be all-or-nothing — partial population of the List Collector is not allowed.
Requesting your help for this solution.
Thanks !
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 hours ago
so what you tried and where are you stuck?
💡 If my response helped, please mark it as correct ✅ and close the thread 🔒— this helps future readers find the solution faster! 🙏
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
30m ago
When I attach an Excel file to the catalog variable, the OnChange catalog client script is not getting triggered. I’m aiming to perform these computations before the form is submitted.
I’d like to understand how this implementation should start, and I’d really appreciate it if you could help by sharing the relevant details or guidance.
Thanks in advance.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
24m ago
you can write onChange catalog client script on that attachment variable
share your script and what debugging did you do?
💡 If my response helped, please mark it as correct ✅ and close the thread 🔒— this helps future readers find the solution faster! 🙏
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
