Help Centre › Building Processes
This article describes the RPA Compression functionality to add a file to an existing ZIP archive.
For a full list of available functions, please read COMPRESSION functions.
Description
The Add to ZIP function adds a file to an existing ZIP archive. You can optionally specify the name the file should have inside the archive.
Setting it up
To use the Add to ZIP function, follow these instructions:
{{popups:rpas/add:action=zip-add}}
Once on a process map:
- Navigate to the process where you would like to add the Add to 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 Add to ZIP option
- Click "Add" once you are done
Input parameters
| Parameter | Required | Type | Default | Description |
|---|---|---|---|---|
| Archive Path | Yes | Text | - | The path to the existing ZIP file |
| File Path | Yes | Text | - | The path to the file to add |
| Archive Name | No | Text | - | The name the file should have inside the archive. Defaults to the original filename. |
Output variables
This action does not produce output variables.
Errors
| Error | Description |
|---|---|
| Archive not found | The ZIP file does not exist |
| File not found | The file to add does not exist |
Tips
- Use the archive name parameter to control the name and path inside the archive
- Combine with zip-create to build archives incrementally