Skip to main content

Write Data to Excel .xlsx

DEPRECATED: Use CreateTable + TableUpsertRow (inside ForEach) + TableExport instead, or TableMerge for bulk merges. This activity has serialization issues with the rows parameter when workflows are saved via DSL. Writes data to a specified Excel (.xlsx) file.

Category: Structured Data Files (Excel, JSON, PDF) · Group: Files · Activity name: WriteToExcel

The WriteToExcel activity in the designer

Example

outputVariable = WriteToExcel("<fullPath>", "<sheetName>", skipRow=0, writeExisting=True, rows={})

Inputs

NameTypeRequiredDefaultDescription
Excel (.xlsx) pathstringYesThe full path to the Excel (.xlsx) file where the data will be written.
Sheet namestringYesThe name of the sheet of where data will to be written.
Rows to skipintegerYesThe index of the row of where data will be written. If set to -1, the data will be appended after the last row in the sheet. Row indexing starts from 0.
Append data to existing Excel (.xlsx)booleanCheck this box to append data to an existing Excel file. If not checked, it will overwrite the existing data.
Configure data rowsobjectDefine the rows to be added to the table.

Outputs

NameTypeDescription
outputVariablestringSpecifies the name of the variable that will store the path to the new .xlsx or the .xlsx.