How to extract files from a zip file in power automate

There are some business processes that receive a large number of files in the form of a zip file.

While automating a business process which is getting a zip file as an input and the bot needs to unzip that file and process those files that are present in that zip file.

In this article, let’s see how to extract files from a zip file using Power automate desktop.

Let’s get into the practical implementation of this task:

Step1: Drag and Drop unzip files action from actions panel to flow designer panel as shown below:

unzip files from a zip

Let’s see the required parameters for unzip files action:

  • Archive path – Provide the full zip file path here.
  • Destination folder – Provide the folder path where this zip file to be extracted. (It will overwrite the folder if the folder already exists)
  • Password – Provide the password if that zip is password protected.
  • Include mask – This acts as a filter to indicate which type of files to be extracted from the zip file. (It allows wildcards)

An example of using include mask for a single type of file to be extracted is shown below:

*.txt

If you want to use ? then use as shown below:

abc?.txt

An example of using include mask for multiple types of files to be extracted is shown below:

*.txt;*.png
  • Exclude mask – This acts as a filter to indicate which types of files not to be extracted from the zip file. (It allows wildcards)

An example of using exclude mask for a single type of file not to be extracted is shown below:

*.txt

An example of using exclude mask for multiple types of files not to be extracted is shown below:

*.txt;*.png

The below image shows you all the required parameters which need to filled are shown below:

unzip files from a zip

This is how we can unzip files from a zip file using power automate desktop.

Happy Learning!

Like this post then let your friends know about this-:

Leave a Reply

Your email address will not be published. Required fields are marked *