File name patterns
On this page
In this article, you will learn about the file name patterns that you can use in the export target configuration to customize the output file names.
Supported file name patterns
CluedIn supports the following file name patterns:
-
{DataTime}and{DataTime:formatString}.DataTimeis in UTC, andformatStringaccepts formats available to theDateTime.ToString()method in C#. For more information, see Microsoft documentation: Standard date and time format strings and Custom date and time format strings.When using
{DataTime}withoutformatString, it defaults to theoformat (for example,2024-07-05T03:02:57.2612933Z). -
{StreamId}and{DataTime:formatString}.formatStringaccepts formats available to theGuid.ToString()method in C#. For more information, see Guid.ToString Method.When using
{StreamId}withoutformatString, it defaults toDformat (for example,ba4afc12-f6dc-4394-b9d5-68f6dacf3b3b). -
{OutputFormat}and{OutputFormat:formatString}.formatStringaccepts the following methods:ToUpperInvariantToUpper(equivalent toToUpperInvariant)ToLowerToUpperInvariant(equivalent toToLowerInvariant)
When using
{OutputFormat}withoutformatString, no extra formatting is performed (for example,csv,parquet,json). -
{ContainerName}and{ContainerName:formatString}.{ContainerName}uses the value in the Target Name of the stream.formatStringaccepts the following methods:ToUpperInvariantToUpper(equivalent toToUpperInvariant)ToLowerToLowerInvariant(equivalent toToLowerInvariant)
Example filename patterns
| File name pattern | Example output |
|---|---|
{StreamId:N}_{DataTime:yyyyMMddHHmmss}.{OutputFormat} | ba4afc12f6dc4394b9d568f6dacf3b3b_20240705030355.parquet |
{StreamId}_{DataTime}.{OutputFormat:ToUpper} | ba4afc12-f6dc-4394-b9d5-68f6dacf3b3b_2024-07-05T03:02:57.2612933Z.PARQUET |
{ContainerName}_{DataTime:yyyyMMddHHmmss}.{OutputFormat} | CustomerRecord_20240705030355.parquet |
Default file name patterns
| Connector | Default file name pattern |
|---|---|
| Azure Data Lake connector | {StreamId:D}_{DataTime:yyyyMMddHHmmss}.{OutputFormat} |
| OneLake connector | {StreamId:N}_{DataTime:yyyyMMddHHmmss}.{OutputFormat} |