Need to extract ZIP files in inbound actions script

Shreeharsh1
Kilo Explorer

I'm receiving a ZIP file from an Email, i need to extract the PDF files exists in that ZIP file and process in inbound actions.

Does anyone have any idea on how this can be achieved.

Tried below but no luck.

 

-- ZIPInputstream Java package

-- Data sources, as the PDF format is not supported.

-- GLIDEZIPUTIL

2 REPLIES 2

Alexander Grisb
Kilo Guru

This isn't really possible without a lot of development time and outside libraries. It also isn't really viable with Javascript itself, due to the nature of the programming language. If you're dead set on doing this, here is a StackOverflow post that goes over the code and explains it, and offers several links to libraries such as jszip and zip.js.

 https://stackoverflow.com/questions/2095697/unzipping-files

Here's another post on using GlideSysAttachment, however, that won't necessarily fix your issue. 

https://snprotips.com/blog/2016/2/25/understanding-and-using-glideattachment

I would go back and try and adjust the requirements for this.

 

Hope this answer helped or solved your problem. If so, please mark as 'Helpful' or 'Correct'. Thanks!

Alexander

Shreeharsh1
Kilo Explorer

Hello Alexander,

 

Thank you for your reply, i have checked these sites but no luck.... was trying to do inside servicenow, maybe like ZIPINPUTSTREAM but that too looks like discontinued after Calgary version..!!! 

😞