Skip to main content
Writes content to a file on a filesystem. Use this to save the data flowing through a route as a file, for example exporting an order as a JSON file, dropping a generated CSV onto an FTP server, or saving a downloaded document. You decide both where the file is written and what goes into it, and each can come either from a value already in the data or from a custom value you type in. When the file path is taken from the data, the final path that was actually used (which can differ if a rename strategy kicked in) is written back into the data at that same location, so later steps can see where the file ended up.

Fields

Sample data

This step writes a file rather than transforming the data, so there is no before/after to show. The configuration below writes each order to its own JSON file under an exports folder, taking the file name from the order id and overwriting any existing file with the same name.
FieldValue
Filesystem connectionThe connection files are exported to
When the file existsOverwrite (left empty)
PathCustom path exports/order-&{order.id}.json
ContentsCustom content built from the data