The CreatorCon Call for Content is officially open! Get started here.

How to unzip file and read xml files?

Gopinath Krish1
Tera Contributor

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

4 REPLIES 4

Chandu Telu
Tera Guru

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,

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 

Hi again,

This checkbox in data sources form.

find_real_file.png

Related documentation.

ZippedSelected if the import file is compressed.

https://docs.servicenow.com/en-US/bundle/sandiego-platform-administration/page/administer/import-set...