How to generate error message for an attached spreadsheet before submitting a catalogue item
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-15-2025 07:59 AM
I've got a catalogue item that involves submitting a spreadsheet. At the moment, if there are any issues with the data within the spreadsheet, it generates error messages on the work notes of the RITM:
This is produced via a script include. However, I was just wondering if there is a way I could apply the same functionality in my script include so that if a user clicks Submit and there are issues with the data within the spreadsheet, it would generate those errors in a pop up box, and prevent the user from submitted their request.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-17-2025 04:39 AM
something like this which I shared might help, but you will have to enhance
validate the excel parser in catalog item
the above will work for native but if you wish to use for portal then you can do this
1) have attachment variable type, let user add file
2) then have onChange script validate that excel and show the error in alert via GlideAjax
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
‎01-19-2025 07:00 AM
Hope you are doing good.
Did my reply answer your question?
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
‎01-19-2025 11:35 PM
Hi @Ankur Bawiskar I'm exploring the option with the people I'm working with. I appreciate your help.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-20-2025 01:09 AM
I believe I already shared link for the solution.
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