Unzip a Zip Folder
  • 12 Mar 2021
  • 1 Minute to read
  • Dark
    Light

Unzip a Zip Folder

  • Dark
    Light

Article summary

Example Lab Article
While Example Lab projects are resources for public use, articles and assets are not actively maintained. Screenshots and features are from the specified version below. These references may become dated as new versions are released.


Overview

Example Lab Details

Version6.12.1
Root FolderExample Lab-Unzip A Zip Folder
Modules None
DependenciesNone

This Example demonstrates how to unzip a zipped Folder and store the files in a specific Folder in the Studio.


Explanation

The Main Flow in this project unzips a zipped folder and places the files in the "Unzipped Files" folder. The first step in this Flow, Unzip Files, is used to unzip the zip folder. For this example, the input to this step was set to Constant and a test zip folder was used, "TestZipFodler.zip". This step unzips the folder and outputs a list of files. The second step in this Flow, For Each step, takes in the output of the previous step, list of Files, and goes through each one and outputs the individual files as an "item". The last step in the Flow, Add Document, is configured to "Build Data" on the File Data input. The Content and File Name are mapped in from the For Each step output, "Item". The Folder Id input is configured to Constant and the Folder Id of  the "Unzipped File" Folder, which is included in this example, is added in. This step output the Document Id of each file added to the "Unzipped Files" folder. Run the Main Flow and check the "Unzipped Files" folder to see the files. The two test files used in this example are "TestFiles1" and "TestFile2".


Reference Articles



Project Download

The examples attached were developed to be instructional and were not developed as officially supported components. For more information or to engage our service team to develop fully supported, production quality solutions, please contact services@decisions.com. Import the project below to a Decisions environment on version 6.12.1 or later using our Importing/Exporting article.





Was this article helpful?