The 'Add to Archive (ZIP)' flow compresses and adds up to 1000 files to a zip package (.zip).
Please refer to the following article detailing how to 'Retrieve a collection of files and add to an Archive package (ZIP File)'
The default 'Add to Archive (ZIP)' flow action parameters are detailed below:
- Filename: The filename to assign to the resulting zip file (including the zip file extension).
- Documents: An array of documents to add to the zip file
- Password: A password to secure the contents of the zip file
- Encryption: Set the encryption level which will be applied to a password-protected zip file
NOTE: Windows cannot natively open AES128 and AES256 encrypted ZIP files, a tool such as 7Zip is required to open such ZIP files.
As a manually entered array:
- Filename: The filename of the source document (including the file extension).
- File Content: A Base64 encoded representation of the document
As an array object:
Documents - JSON Schema
The JSON provided within the documents parameter should conform to the following schema:
"fileName": "<Filename including extension>",
"fileContent": "<File contents>"
The advanced 'Add to Archive (ZIP)' flow action parameters are detailed below:
- Encoding: Set the encoding type used for archiving documents.
The 'Add to Archive (ZIP)' flow action returns the following data.
Standard Return Values
- Filename - An filename provided.
- FileContent - A base64 string representation of the archive (.zip) file.
- OperationId - The unique ID assigned to this operation.
- HttpStatusCode - The HTTP Status code for the response.
- HttpStatusMessage - The HTTP Status message for the response.
- Errors - An array of error messages should an error occur.
- Operation Status - Indicates whether the operation has been completed, has been queued or has failed.
1 action is consumed for 1 ZIP file created regardless of how many documents are archived.