Help Centre › Building 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:
- Navigate to the process where you would like to add the Extract ZIP function
- Click on the green button’s drop-down (right side of the green button labelled “Process”)
- On the menu that appears, click on the “+ Activity” item
- From here you can select the COMPRESSION Extract ZIP option
- Click "Add" once you are done
Input parameters
| Parameter | Required | Type | Default | Description |
|---|---|---|---|---|
| Archive Path | Yes | Text | - | The path to the ZIP file to extract |
| Destination | Yes | Text | - | The directory where files should be extracted to |
| Files | No | Text | - | Specific files to extract (comma-separated). Omit to extract all. |
| Variable | No | Text | extracted_files | Variable name to store the list of extracted files |
Output variables
| Variable | Type | Description |
|---|---|---|
| {extracted_files} | Array | Array of file paths that were extracted |
Errors
| Error | Description |
|---|---|
| Archive not found | The ZIP file does not exist |
| Invalid archive | The 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