COMPRESSION Extract ZIP function

The COMPRESSION Extract ZIP function in RPA.

Help CentreBuilding Processes

This article describes the RPA Compression functionality to extract files from a ZIP archive.

For a full list of available functions, please read COMPRESSION functions.


Description

The Extract ZIP function extracts files from a ZIP archive to a destination directory. You can extract all files or specify individual files to extract.


Setting it up

To use the Extract ZIP function, follow these instructions:

{{popups:rpas/add:action=zip-extract}}

Once on a process map:

  1. Navigate to the process where you would like to add the Extract ZIP function
  2. Click on the green button’s drop-down (right side of the green button labelled “Process”)
  3. On the menu that appears, click on the “+ Activity” item
  4. From here you can select the COMPRESSION Extract ZIP option
  5. Click "Add" once you are done

Input parameters

ParameterRequiredTypeDefaultDescription
Archive PathYesText-The path to the ZIP file to extract
DestinationYesText-The directory where files should be extracted to
FilesNoText-Specific files to extract (comma-separated). Omit to extract all.
VariableNoTextextracted_filesVariable name to store the list of extracted files

Output variables

VariableTypeDescription
{extracted_files}ArrayArray of file paths that were extracted

Errors

ErrorDescription
Archive not foundThe ZIP file does not exist
Invalid archiveThe file is not a valid ZIP archive

Tips

  • Omit the files parameter to extract all files from the archive
  • Use zip-list to preview the contents before extracting

Related functions

See it working on your own data

Everything documented here ships with the platform – try the document tools free, or go live in 7 days.