> ## Documentation Index
> Fetch the complete documentation index at: https://docs.engini.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Zip Archives

ZIP Archive is used for compressing and decompressing files and directories, facilitating easier storage and transfer. This guide explains the various activities available for interacting with ZIP archives.

1. Open a new workflow

2. Choose the Core software.

   <img src="https://mintcdn.com/engini/vwQ3LHyP533bOu6-/help/assets/tools/zip-archives/DR6GRObDMMPOuMYYSC4II_untitled-design-76.png?fit=max&auto=format&n=vwQ3LHyP533bOu6-&q=85&s=5a25f9033d281c03e536f998612dca79" alt="" width="1915" height="910" data-path="help/assets/tools/zip-archives/DR6GRObDMMPOuMYYSC4II_untitled-design-76.png" />

3. Choose the Zip Archive Option.

   <img src="https://mintcdn.com/engini/vwQ3LHyP533bOu6-/help/assets/tools/zip-archives/1ADzYYDZUu-qBZbzMzktB_untitled-design-92.png?fit=max&auto=format&n=vwQ3LHyP533bOu6-&q=85&s=5b408718e8dbaffd8947add36408d2ae" alt="" width="1917" height="983" data-path="help/assets/tools/zip-archives/1ADzYYDZUu-qBZbzMzktB_untitled-design-92.png" />

## Activities

### Initialize Files Array

Creates an empty array to store file details for ZIP operations.

<img src="https://mintcdn.com/engini/vwQ3LHyP533bOu6-/help/assets/tools/zip-archives/q7Lmao6Zsd0b-APeSJM90_untitled-design-93.png?fit=max&auto=format&n=vwQ3LHyP533bOu6-&q=85&s=eaed542587121b9aaaafc2dfb4a61cf7" alt="" width="1919" height="987" data-path="help/assets/tools/zip-archives/q7Lmao6Zsd0b-APeSJM90_untitled-design-93.png" />

* *Variable name -* Enter the name of the variable that will hold the array of files.

**Note**: You can insert the first values without adding Append to Files Array, more than that will require the use of the Append activity.

### Append to Files Array

Adds a file to the previously initialized array.

<img src="https://mintcdn.com/engini/vwQ3LHyP533bOu6-/help/assets/tools/zip-archives/wckAeEW6M62IvG0-x_NlJ_3-6.png?fit=max&auto=format&n=vwQ3LHyP533bOu6-&q=85&s=307181cf1f651969ff0b19d71510f72e" alt="" width="1912" height="986" data-path="help/assets/tools/zip-archives/wckAeEW6M62IvG0-x_NlJ_3-6.png" />

1. *Variable -* Select from the drop-down menu the variable that you initialized, which holds the files array.
2. *File name -* Enter the name of the file to be added.
3. *File Content -* Enter the content of the file in Base64 String format.

### Create an Archive

Creates a ZIP archive from the files in the array.

<img src="https://mintcdn.com/engini/vwQ3LHyP533bOu6-/help/assets/tools/zip-archives/gmCr5AXGIVhEuh_StzChH_untitled-design-94.png?fit=max&auto=format&n=vwQ3LHyP533bOu6-&q=85&s=70edfd154e77a66ccaaf9c3b562e58ce" alt="" width="1746" height="901" data-path="help/assets/tools/zip-archives/gmCr5AXGIVhEuh_StzChH_untitled-design-94.png" />

1. *Archive name -* Enter the name for the new ZIP archive.
2. *Files\[] -* Select the variable that contains the array of files to be zipped.

### Extract an Archive

Extracts the contents of a ZIP archive.

<img src="https://mintcdn.com/engini/vwQ3LHyP533bOu6-/help/assets/tools/zip-archives/s7kYyJNxPStaNEFYBKO6H_untitled-design-95.png?fit=max&auto=format&n=vwQ3LHyP533bOu6-&q=85&s=76e5a925bfb276526a28c5574f9e7707" alt="" width="1914" height="985" data-path="help/assets/tools/zip-archives/s7kYyJNxPStaNEFYBKO6H_untitled-design-95.png" />

* *File content -* Enter the content of the ZIP file in Base64 String format.

### Map Files Array

Maps data to files and adds them to the array.

<img src="https://mintcdn.com/engini/vwQ3LHyP533bOu6-/help/assets/tools/zip-archives/yJZknJT0YGCUk7FoSSjCR_3-7.png?fit=max&auto=format&n=vwQ3LHyP533bOu6-&q=85&s=a80d27e307e400dc1a8e1ca9ab18fd48" alt="" width="1916" height="987" data-path="help/assets/tools/zip-archives/yJZknJT0YGCUk7FoSSjCR_3-7.png" />

1. *Data List -* Enter the data list that contains file information.
2. *File name -* Enter the name for each file.
3. *Content -* Enter the content of each file in Base64 String format.
4. *Add Field -* Use this option to add additional custom fields to your array.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.