Some PDIs are currently unavailable, and PDI actions are paused. View the latest updates here. Read More

How to unzip file in record producer

premkmuruga
Mega Contributor

Hello

I have a requirement where user uploads a zip file through a record produce and submits, the file needs to be unzipped and all the attachments in the zip file should be there on the Record.Can we achieve this functionality?

1 ACCEPTED SOLUTION

RaghavendraGund
Tera Contributor

Hello Prem

This is feasible. If you have a integration hub pro License, you can see ZIP /UnZIP Action in flow designer, which helps to achieve your Requirement.

Step1: Create a Record Producer with Attachment Variable which only accepts ZIP files
Step2:  In the script tab for the record producer, save the sys_id of the attachment (current.description = producer.upload_zip_file)
Step3: create a flow , with record Created, Use Look UP Record which queries Attachment Table, get the sys ID of the Attachment,  then use the Unzip files Action. Please refer screenshots

Please Mark Helpful, if my Solution Helped you








View solution in original post

4 REPLIES 4

RaghavendraGund
Tera Contributor

Hello Prem

This is feasible. If you have a integration hub pro License, you can see ZIP /UnZIP Action in flow designer, which helps to achieve your Requirement.

Step1: Create a Record Producer with Attachment Variable which only accepts ZIP files
Step2:  In the script tab for the record producer, save the sys_id of the attachment (current.description = producer.upload_zip_file)
Step3: create a flow , with record Created, Use Look UP Record which queries Attachment Table, get the sys ID of the Attachment,  then use the Unzip files Action. Please refer screenshots

Please Mark Helpful, if my Solution Helped you








Tanushree Maiti
Tera Patron

Hi @premkmuruga 

 

Check this video.

https://www.youtube.com/watch?v=de1LnEPAVU0

 

 

Please Accept the solution if it assisted you with your question & Mark this response as Helpful.
Regards
Tanushree Maiti
ServiceNow Technical Architect
LinkedIn: https://www.linkedin.com/in/tanushreemaiti
With new Zip Steps you can finally add file attachment zipping and unzipping to your record attachments in Flow Designer. 🔎 Looking for #ServiceNow talent or opportunity? 🤝 Need coaching or mentorship? http://theduke.digital/contact/ 👑 Duke Digital Media sponsorships & consults: ...

Tanushree Maiti
Tera Patron

Hi @premkmuruga 

 

This could be another way (complex design)

 

  1. User will attached Zip document in data source
  2. https://www.servicenow.com/community/servicenow-ai-platform-forum/unzipping-an-attachment/m-p/118273...
  3. From there a record producer (RITM) record would be created with unzip attachment
Please Accept the solution if it assisted you with your question & Mark this response as Helpful.
Regards
Tanushree Maiti
ServiceNow Technical Architect
LinkedIn: https://www.linkedin.com/in/tanushreemaiti

Ankur Bawiskar
Tera Patron

@premkmuruga 

I don't think this is feasible with any OOTB API from ServiceNow

you can try custom solution but it would be a lot in terms of technical debt

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

Regards,
Ankur
Certified Technical Architect  ||  10x ServiceNow MVP  ||  ServiceNow Community Leader