Overview
Within your Flow configurations you can specify a custom filename format to use for all output files produced during the Flow execution process. Filename modifications are the last step in a Flow execution before the generated files are transferred to the destination system to be sent to the designated trading partner. The file output format is specified using template variables. Each filename should be unique for easy identification and management. This feature is located in your Flow configuration settings under the Advanced Settings subsection.
Example
When sending a purchase order XML document to trading partners, they may require the purchase order number or customer number to be a part of the filename to ensure proper routing. When configuring your Flow, you can designate an output filename format for the system to follow to produce purchase order files each with the corresponding purchase order number titled in the filename.
Configuring a Custom Output Filename
You can configure custom file names in the Output Filename Format field of the Advanced Options pane within a flow configuration.
Use the template variables in the table below to craft the custom file name format. The template variables list is also accessible in the Advanced Options subsection by clicking the question mark icon next to "Output Filename Format."
Output Filename Format Template Variables
| Variable | Description | Example Format | Example Output File Name |
{{index}} | A number incremented for each file in the output payload, starting at "1". | {{index}}.txt | 1.txt |
{{uuid}} | A unique identifier. | {{uuid}}.txt | bfea08cb-1639-4a5e-9ecd-e6394958e9c9.txt |
{{epochms}} | The datetime at which the file is renamed. {{epochms}} will always resolve to a unique millisecond value for each file in an Execution. | {{epochms}}.txt | 1750941554002.txt |
{{date}} | Current date using 4 digit year, 2 digit month, 2 digit day formatting ("yyyy-MM-dd"). | {{date}}.txt | 2025-06-26.txt |
{{date "format"}} |
| {{date "yyyy-MM-dd'T'HH-mm-ss-SSS"}}.txt | 2025-06-26T12-39-14-002.txt |
{{ext}} |
| file{{ext}} | Example filename:
|
{{ext "default"}} |
| {file{{ext "json"}} | Example filename 1: testing.txt Example output 1: file.txt Example filename 2: testing Example output 2: file.json |
{{original_basename}} | File name of the corresponding source file without the extension. | prefix_{{original_ basename}} | Example filename: testing.txt Example output: prefix_testing |
{{original_filename}} | Fill file name of the corresponding source file, including the extension. | prefix_{{original_ filename}} | Example filename: testing.txt Example output: prefix_testing.txt |
{{xpath "path/to/element"}} |
| {{xpath "Root"}}.xml | Example file: Example output: Element Text.xml |
{{jsonata "path.to.property"}} |
| {{jsonata "property"}}.json | Example file: {"property": "value"} Example Output: value.json |
Example
Output file format: report_{{date "yyyy"}}_{{epochms}}_{{index}}{{ext}}
Rendered output file name: report_2023_1699622449478_1.json.
Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article