Overview
The 'Archive (ZIP) - Create' flow compresses and adds up to 1000 files to a zip package (.zip).
Example Flow
Please refer to the following article detailing how to 'Retrieve a collection of files and add to an Archive package (ZIP File)'
Credit Count
This action consumes 1 credit per operation.
Note, different Encodian actions can consume different number credits. Please always check the action specific documentation and read What is an Encodian Action for a full description of how credits are consumed.
Default Parameters
The default 'Archive (ZIP) - Create' 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>"
}
Advanced Parameters
The advanced 'Archive (ZIP) - Create' flow action parameters are detailed below:
- Encoding: Set the encoding type used for archiving documents.
Return Parameters
The 'Archive (ZIP) - Create' 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.
0 Comments