# Add filenames to result

### Description

The `Add Filenames to result` action adds a set of files or folders to the result list of the workflow action.

This list of filenames can then be used in the various workflow actions all around.

### Options

| Option                         | Description                                                                                                                                                |
| ------------------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Action name                    | The name of the workflow action.                                                                                                                           |
| Include subfolders             | Include subfolders of the selected folders                                                                                                                 |
| Copy previous results to args? | Passes the results of the previous action to the arguments of this action.                                                                                 |
| Clear result filenames?        | This option clears the list of result files (from previous workflow actions) before creating a new list.                                                   |
| File/Folder                    | <p>Specify the list of files or folders with wildcards (regular expressions) in this grid.<br>You can add a different source/destination on each line.</p> |
| Wildcard (RegExp)              | A regular expression wildcard to include file patterns in the list of file names.                                                                          |

After specifying a folder and wildcard (regular expression), use the `Add` button to add your file/folder selection to the table. Use the `Delete` or `Edit` buttons to remove or edit selected lines in the table.


---

# 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/addresultfilenames.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.
