- Before this lesson
- Working with Excel
- You will learn to
- Create a table from scratch
- Add rows with JSON
- Read and set cells by row index and column
- Know the table's JSON shape
A DataTable is Station's spreadsheet-in-a-variable: named columns and rows. CSV, Excel and database queries produce them; you can also build one.
Build a table
- Create DataTable: Columns (comma-separated)
Name,Score, Save To Variableresults. - Add Row: DataTable Variable
results, Row Data (JSON){"Name": "Ana", "Score": "12"}. - Add two more rows the same way.
Read and change
- Get Row: one row by Row Index (the first row is 0).
- Get Cell: one value by row index and Column Name.
- Set Cell: change one value.
- Filter Table and Sort Table: keep some rows, change the order.
- For Each Row: repeat steps for each row.
What a table looks like inside
When you look at a table variable in the Variables panel or a log, you see JSON:
{"columns":["Name","Score"],"rows":[{"Name":"Ana","Score":"12"}]}
Each row must contain exactly the table's columns. That is why a mistyped column name in Add Row fails instead of creating a broken table.
Activities in this lesson
Create DataTable · Add Row · Get Row · Get Cell · Set Cell · Filter Table · Sort Table · For Each Row
Saved only in this browser.
Source-verified. Steps were checked against the Station source code and authentic screenshots. Not yet executed step by step in the app. 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.