List To File
Writes the items of a list one after another into a new file.
List To File writes every item of a list into one new file. Use it to build a text file, a log or a simple export line by line from a list you built in your process.
Add the action
In the Process Designer toolbox, open Documents and pick List To File (or type List To File in the search box).

Inputs and outputs
| Field | Direction | Type | Required | What to put / what you get |
|---|---|---|---|---|
| Object List | Input | List of Object (JSON) or Text | Yes | The items to write. |
| Filename | Input | Text | Yes | The file name with an extension, for example lines.txt. |
| Encoding | Input | Option | Yes | The character set of the file. Default UTF8. Also: UTF32, ASCII, Unicode (UTF-16), BigEndianUnicode, Latin1 and Windows code pages 1250โ1258. |
| Line Ending | Input | Option | Yes | Windows (CRLF) (default), Unix (LF) or Mac (CR). |
| File | Output | File | Yes | The new file. |
Example
| Object List | Filename | Content of File |
|---|---|---|
["a","b","c"] | list.txt | abc |
["a\n","b\n"] (each item ends with a line break), Line Ending Windows (CRLF) | lines.txt | a and b on two lines, CRLF line breaks |
[{"id":1},{"id":2}] | list.json | The two objects as indented JSON, written one right after the other |
[] | e.txt | The step fails: "Input error: Input list is null or empty." |
The items are written one right after the other, with no separator. To get one item per line, add a line break at the end of each item before you call the action. A list of objects does not become a JSON array; to save a list as valid JSON, use Object To File with the whole list, or Export To CSV for a table.
Good to know
- Empty (null) items are skipped.
- Line Ending converts the line breaks inside each item to the style you pick.
- ASCII and the Windows code pages replace the characters they do not have with
?. - A file name without an extension makes the step fail with "Input error: File name must contain a valid extension.".

