- Before this lesson
- Files and folders
- You will learn to
- Read a CSV into a DataTable
- Filter rows by a column
- Read a column of the current row
- Write a CSV file
- Sample files
- csv-sales-summary.station.json · sales.csv
Reading
CSV Operation with Operation read turns a CSV file into a DataTable (columns and rows). Set File Path, Delimiter (usually ,; semicolon ; is common in Europe) and the variable name.
The first row must be a header with unique, non-empty column names, and every row must have the same number of fields. Otherwise the step fails with a clear message.
Filtering
Filter Table keeps the rows where a Column matches: equals, not equals, contains, starts with, ends with, greater, less. Save the result as a new table.
Looping over rows
For Each Row runs its children once for each row. The current row is available in the Row Variable Name (default CurrentRow) and its position in Index Variable Name (default RowIndex, starting at 0).
To read one column of the current row, use Get Key with dictVariable set to the row variable and the key set to the column name, for example Units.
Writing
CSV Operation write saves a DataTable as a CSV file. Values are quoted.
The sample
csv-sales-summary.station.json reads sales.csv, keeps the region in the variable region (default North), adds up units × price for each sale, writes sales-North.csv and a two-line report.
Activities in this lesson
CSV Operation · Filter Table · For Each Row · Get Key · Math · Write File
Saved only in this browser.
Workflow engine-tested. The sample workflow was executed with the macOS Station engine (StationCore) without the user interface. UI steps are source-verified. Written against RPAi Station for macOS 0.1.0 (1) (RPAi_Station_2.0 @ port/macos 9864e96) and the Windows source (RPAi_Station_2.0 @ codex/native-station e68f16d). Reviewed 2026-11-30. UI labels may differ slightly in other versions; see versions and changes.