How to unzip file and read xml files?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-13-2022 01:54 AM
Hi All,
When I hit an 3rd party endpoint it sends response as zip file which is having xml files. Here I want to unzip the file and read the xml files. Any help would be appreciated.
Thanks in Advance,
Gopinath
- Labels:
-
Integrations
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-13-2022 01:58 AM
Hi Gopinath Krishnan,
Check the below link it have step by step process
https://community.servicenow.com/community?id=community_article&sys_id=4d2653c41b52cc10fff162c4bd4bcbd8
Thanks
Chandu Telu
Please Mark ✅ Correct/helpful, if applicable,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-04-2022 02:48 AM
Hi Chandu Teju,
Thanks for the reply. I have a limitation to use mid server. So I can't go with above approach.
Instead, I stored the zip file in Data source so that I can load xml file data's into import set table. From there can I able to achieve my requirement.
Thanks.
Gopinath

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-04-2022 02:56 AM
Hi,
In that case, check the reply in the following thread.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-04-2022 03:02 AM
Hi again,
This checkbox in data sources form.
Related documentation.
Zipped | Selected if the import file is compressed. |