Write Excel
Writes rows to an Excel file that later steps can return, send or store.
@lainstack/data/write-excel · Data
How to use it
Section titled “How to use it”Use Write Excel to turn rows into an Excel workbook, such as a list of checked shipments to return from an Operation or attach to an email. For a plain text file other systems import, use Write CSV.
Good to know:
- Rows is a List of Records or a Table from an earlier step, such as Select Rows or Parse CSV. The first row holds the column names, then each row is one row of the sheet, columns in the same order.
- File name can include values from earlier steps. The .xlsx ending is added when it’s missing, and characters a file name can’t hold, such as / or :, become _. Left empty, the file is rows.xlsx. The sheet is named after the file.
- The header row is bold, stays in place while scrolling, and has a filter. Column widths follow the header and the first 200 rows.
- Text stays text: it never runs as a formula, and leading zeros, such as in a commodity code, are kept.
- Numbers are numbers and true and false are TRUE and FALSE. A date column’s dates are Excel dates shown as 2026-11-14; dates before 1900, which Excel can’t hold, stay text. Dates with a time are ISO text. Lists and records are JSON, and a File column is the file’s name.
- An Excel cell holds at most 32,767 characters. A longer text fails the step and names the row and column.
- A file holds at most 500,000 rows and 50 MiB. Over either, the step fails and writes nothing.
- File is the workbook, ready for Returned files, Send email or Write object. Row count is the number of rows written.
Settings
Section titled “Settings”| Setting | Key | Type | Details |
|---|---|---|---|
| Rows (required) | rows |
Value | A List of Records or a Table from an earlier step. |
| File name | fileName |
Text | The .xlsx ending is added when it’s missing. |
Outputs
Section titled “Outputs”| Output | Path | Type |
|---|---|---|
| File | file |
Value |
| Row count | rowCount |
Number |