ZIP

Creates a ZIP archive containing a given file or files.

Syntax 

ZIP(fileContentsOrFilesArray, [filename], [password])

Usage examples 

Example 1

Formula

ZIP(file_contents, "file_name", "optional_password")

Example 2

Formula

ZIP(file_contents_1, "file_name_1", file_contents_2, "file_name_2", "optional_password")

Example 3

Input

1
{
2
"zip_files": [
3
{
4
"contents": "file_contents1",
5
"name": "file1.txt",
6
"created_at": "2023-01-11T15:06:18+00:00"
7
},
8
{
9
"base64encodedcontents": "ZmlsZV9jb250ZW50czI=",
10
"name": "file2.txt",
11
"created_at": "2023-01-11T16:06:18+00:00"
12
}
13
]
14
}

Formula

ZIP(zip_files, "optional_password")

Sample Actions 

New Page
Event Transform
ZIP

Select an Action to inspect.

You can also click "Copy Actions" and paste them in your Tines Story to see how they work.

Event Transform
My Action
Event Transform
ZIP

Select an Action to inspect.

You can also click "Copy Actions" and paste them in your Tines Story to see how they work.

Was this helpful?