Zip Files
Use this action to zip the specified file and return the zipped file path.
Using the Zip Files Action
To use this action in your workflow, connect it to ThingWorx Flow. To connect to the flow, do the following:
1. Click and drag the Zip Files action listed under the Archive utility on the canvas, place the pointer on the action, and then click or double-click the action. The Zip Files action window opens.
2. Edit the label name, if needed. By default, the label name is same as the action name.
3. In the File/Folder Path field, enter the path of the file such as /folder1/file1.txt or folder such as /folder1.
4. In the Zip Name field, enter name of the zip file without the .zip extension. The extension is automatically appended. For example, if the zip file name is test.zip, enter test.
5. Click Done.
Output Schema
The Zip Files action returns the zip file name and its file path. See a sample output schema in the figure that follows:
Was this helpful?