Skip to content

Read Excel Sheet

Type: excel-read-sheet  ·  Package: Excel Activities v1.0.0  ·  Output: DataTable

Reads a full Excel sheet and returns it as a DataTable, using the first row as column headers. It’s the most practical and common way to read Excel data: you get a table ready to traverse, filter, or dump to another source.

Opens the indicated sheet and converts it into a DataTable. By default it takes the first row as column names (hasHeader = true), so you then access the cells by name: str(row["Cliente"]). You can limit the reading to a range. Accepts session (session mode) or path (quick mode) — see the two modes.

Ninguno — pero debes indicar session o path.

ParameterEditorDescription
sessionexpressionExcel Open session (instead of path).
pathexpressionRoute to .xlsx (fast mode: opens and closes alone).
sheetexpressionName or 1-based index of the sheet. By default, the first.
hasHeaderbooleanThe first row is the headers. By default true.
rangetextLimit to a range, e.g. "A1:D50".

Returns a DataTable. Loop through it with For Each and access cells with str(row["Columna"]).

Read Excel Sheet path = = asset("clientes.xlsx") sheet = "Activos" → output: clientes
Log message = = "Clientes leídos: " + rowCount(clientes)
For Each items = = clientes itemVariable = fila
└─ activities:
Log message = = str(row["Nombre"]) + " — " + str(row["NIT"])