Write File
Write File—Transfer objects can write files and modify existing files. File paths can be selected from a database or specified as constants. You can configure the transfer object directly within the flow as described.
After double-clicking the transfer object, configure the following properties:
Section: Output Path
| Property | Description |
|---|---|
| Dynamic or Static | Select whether the destination path is dynamic or static. If the destination path is dynamic, it can be specified at runtime via an item link. |
Section: Existing Files
| Property | Description |
|---|---|
| Action | Overwrite: The target file is completely replaced by the new file. Generate error: If the target file already exists, the transfer is aborted with an error. Append data: For text files, the new data can be appended to the old file. Move existing file: Moves the existing file to a specified directory. |
Section: File Settings
| Property | Description |
|---|---|
| Dynamic or Static File Name | Select a static file name or pass a file name at runtime via an item link. |
| Prefix with UTC Timestamp | If enabled, the current UTC timestamp is prepended to the file name. For example, the file “test.txt” becomes “20191204_095646_test.txt”. |
| Write binary data | Select this option if you want to write a binary file. (e.g., *.doc, *.jpg, *.xlsx). |
| Write Text | Select this if you want to write a plain text file. You can also select the file encoding. |