Get Data Row
Get Data Row
Section titled “Get Data Row”Type: get-row · Package: DataTable Activities v1.0.0 · Output: DataRow
Returns the row (DataRow) at a specific position of a DataTable.
How it works
Section titled “How it works”Reads the row at position index (the first is 0) and returns it. If the index is out of range, it fails with a clear message. It does not modify the table.
With the row you can read cells with Get Cell or modify it with Set Cell / Update Data Row — remember the row is still bound to its table, so modifying it changes the table.
Required parameters
Section titled “Required parameters”| Parameter | Editor | Description |
|---|---|---|
table | expression | The DataTable to read from, e.g. = customers. |
index | expression | Row index (zero-based). |
Optional parameters
Section titled “Optional parameters”None.
Output
Section titled “Output”Returns a DataRow.
Example
Section titled “Example”Get Data Row table = = people index = 0 → output: first
Set Cell row = = first column = "age" value = 99Log message = = "Name: " + str(first["name"])Related activities
Section titled “Related activities”- Get Cell — read a cell of the row.
- For Each — loop through all rows.
- Find Data Row — get a row by condition instead of index.