how to unzip the zip attachment and then read internal files which are present inside the zip files
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-17-2025 08:01 AM
Hi All,
I am working on project where I get the zip file in the attachment then we have to unzip it and read the data of the files which are under zip file. then we need to combine those 2 files together on the basis of parent child relation ship to do the data validation.
can we do this is there any way to this please let me know.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-18-2025 06:43 PM
As I informed there is nothing available OOTB for this except the paid version of Integration hub and that also works in server side
So for your requirement you can use onChange client script and some UI script which has external API library to handle this
Note: Remember I won't recommend this much customization as this will be a technical debt and will have dependency on external library
💡 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
3 weeks ago
@Ankur Bawiskar can you please help me with this by giving me suggestion about what method should I use in this case.. and share some steps of those methods as well.
Because external api's are not working for me in this case because of whitelist issues..
java util packages are not working for me either.
Please share some better suggestion regarding this..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-19-2025 04:02 AM - edited 12-19-2025 04:09 AM
@keshav77 right. But but cant you just get the catalog variable value in an onChange catalog client script, and then make a GlideAjax call to a script include and call a sublow that do your validation and returns the result to the client side
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-19-2025 04:09 AM
I think the caveat here will be async/synchronous operations. You have to run your subflow with inputs (synchronous) but the glideajax will be asynchronous (and you should not use getXMLWait in this case)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-19-2025 06:48 AM
@Hugo Barros so you are trying to I can use any java zip utilities that help to unzip the attachment just need to use zip utilities in script include and need to call glide Ajax on onchange client script on the attachment variable. are you aware about any utilities that will work in ServiceNow
