Skip to main content

Write File

Writes text, a value as JSON, or a copy of another file to a new file, and outputs it for later steps to read, attach, or send.

File Name​

The name the file is saved under, with its extension: report.csv, payload.json. Mix in variables to name the file after the data it holds.

Required · Accepts variables

Content​

What to write. Text is written as typed, an object or list from an earlier step is written as JSON, and a file from an earlier step is copied, streamed from wherever it lives.

Required · Accepts variables

Content Type​

The file's MIME type, such as text/csv. Bind it from an earlier step when it varies, for instance to the type an HTTP response came back with when a loop writes one file per item. Left blank, it's the source file's type for a copy, application/json for an object or list, a guess from the File Name's extension, or else text/plain.

Accepts variables

Was this page helpful?

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.