# Zip File

### Description

The `Zip file` action creates a standard ZIP archive using the options you specify in the dialog.

### Options

#### General tab

| Option                      | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| --------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| Action name                 | The name of the workflow action.                                                                                                                                                                                                                                                                                                                                                                                                                             |
| Source files                |                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
| Get arguments from previous | <p>This checkbox takes the filename specification from the result rows of a previous workflow action. This is what will be taken from the rows.</p><ul><li>The first field has to contain the filename or folder.</li><li>The second field should contain the inclusion wildcard</li><li>The third field should contain the exclusion wildcard.</li><li>The fourth field should contain the target zip file (this can be different for each file).</li></ul> |
| Source directory/file       | The source directory of the files to be zipped                                                                                                                                                                                                                                                                                                                                                                                                               |
| Include wildcard (RegExp)   | The wildcard (regular expression) of the files to include in the zip archive                                                                                                                                                                                                                                                                                                                                                                                 |
| Exclude wildcard (RegExp)   | The wildcard (regular expression) of the files to exclude from the zip archive                                                                                                                                                                                                                                                                                                                                                                               |
| Include sub-folders         | Enable this option to search files in sub-folders                                                                                                                                                                                                                                                                                                                                                                                                            |
| Zip file                    |                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
| Zip file name               | The full name of the destination archive                                                                                                                                                                                                                                                                                                                                                                                                                     |
| Create parent folder        | Create the parent folder if it doesn’t exist                                                                                                                                                                                                                                                                                                                                                                                                                 |
| Include date in filename    | Add the date to the file name                                                                                                                                                                                                                                                                                                                                                                                                                                |
| Include time in filename    | Add the time to the file name                                                                                                                                                                                                                                                                                                                                                                                                                                |
| Specify date time format    | Allows you to specify the date/time format mask,                                                                                                                                                                                                                                                                                                                                                                                                             |
| Date time format            | The date time format mask, like yyyy/MM/dd HHmmss                                                                                                                                                                                                                                                                                                                                                                                                            |
| Show filename               | Shows an example filename based on the options you specified                                                                                                                                                                                                                                                                                                                                                                                                 |

#### Advanced tab

| Option                   | Description                                                                                                                                                                                        |
| ------------------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Advanced                 |                                                                                                                                                                                                    |
| Compression              | The compression level to be used. The options are \* Default \* Best Compression \* Best speed                                                                                                     |
| If zip file exists       | <p>The action to take when there already is a file at the target destination. The options</p><ul><li>Create new with unique name</li><li>Append to existing</li><li>Do nothing (default)</li></ul> |
| After zipping            | <p>The action to take after zipping. The options are</p><ul><li>Do nothing (default)</li><li>Delete files</li><li>Move files</li></ul>                                                             |
| Move files to            | The target directory to move the source files to after zipping                                                                                                                                     |
| Create folder            | Create the folder to move to                                                                                                                                                                       |
| Stored source path depth | This is the part of the source file path which is taken over in the ZIP file archive structure.                                                                                                    |
| Result file name         |                                                                                                                                                                                                    |
| Add Zip file to result   | Enable this option to add the target zip file(s) to the result                                                                                                                                     |


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.primeur.com/data-shaper-1.21/knowing-the-data-shaper-designer/workflows/actions/zipfile.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
