Help Centre › Building Processes
This article describes the RPA Compression functionality to create a ZIP archive.
For a full list of available functions, please read COMPRESSION functions.
Description
The Create ZIP function creates a new ZIP archive from one or more files, a directory, or a list of paths. You can choose the compression method for optimal size or speed.
Setting it up
To use the Create ZIP function, follow these instructions:
{{popups:rpas/add:action=zip-create}}
Once on a process map:
- Navigate to the process where you would like to add the Create 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 Create ZIP option
- Click "Add" once you are done
Input parameters
| Parameter | Required | Type | Default | Description |
|---|---|---|---|---|
| Archive Path | Yes | Text | - | The path for the output ZIP file |
| Source | Yes | Text | - | The file, directory, or list of paths to include in the archive |
| Compression | No | Select | deflated | Compression method: deflated, stored, bzip2, or lzma |
Output variables
This action does not produce output variables.
Errors
| Error | Description |
|---|---|
| Source not found | The source file or directory does not exist |
| File write error | Could not write the archive to the specified path |
Tips
- Use deflated compression for the best balance of size and speed
- Use stored (no compression) when speed matters more than file size