# Process result filenames

### Description

The `Process result filenames` action allows you to copy, move or delete a number of files and/or folders to alternate locations on your file system.

### Options

| Option                              | Description                                                                                                                                                                                                                                                                                        |
| ----------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Workflow action name                | The name of the workflow action.                                                                                                                                                                                                                                                                   |
| Action                              | <p>Choose one of</p><ul><li>Copy (default)</li><li>Move</li><li>Delete</li></ul>                                                                                                                                                                                                                   |
| Destination folder                  | Define the target folder                                                                                                                                                                                                                                                                           |
| Create destination folder           | use this option to create the destination folder when it does not exist                                                                                                                                                                                                                            |
| Replace existing file               | use this option to overwrite existing files                                                                                                                                                                                                                                                        |
| Remove source filenames from result | use this option to remove the processed filenames from the list of result filenames                                                                                                                                                                                                                |
| Add destination filenames to result | use this option to add the the processed target filenames to the list of result filenames                                                                                                                                                                                                          |
| Add date to filename                | add the date to the target filename, e.g. yyyyMMdd                                                                                                                                                                                                                                                 |
| Add time to filename                | add the time to the target filename, e.g. HHmmss                                                                                                                                                                                                                                                   |
| Specify date time format            | allows you to specify your own date-time format, e.g. yyyyMMdd\_HHmmss                                                                                                                                                                                                                             |
| Add date before extension           | when this option is not checked, the date/time is appended after the file extension                                                                                                                                                                                                                |
| Limit to                            |                                                                                                                                                                                                                                                                                                    |
| Limit action to                     | Define include and exclude wildcards                                                                                                                                                                                                                                                               |
| Wildcard (RegExp)                   | The regular expression wildcard to use to include files                                                                                                                                                                                                                                            |
| Exclude Wildcard (RegExp            | The regular expression wildcard to use to exclude files                                                                                                                                                                                                                                            |
| Success On                          |                                                                                                                                                                                                                                                                                                    |
| Success on                          | <p>Success condition : select one of these option:</p><ul><li>Success when all works fine</li><li>Success when at least x files moved (specify x in the limit field below)</li><li>Success when number of errors lesser than (specify the max number of errors in the limit field below)</li></ul> |
| Nr errors lesser than               | The number of errors or number of files specified in the `Success on` option above.                                                                                                                                                                                                                |


---

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