Update Data Row
Update Data Row
Section titled “Update Data Row”Type: update-row · Package: DataTable Activities v1.0.0 · Output: none
Updates several columns of a row (DataRow) at once.
How it works
Section titled “How it works”Takes a dictionary { column: value } and assigns each value to its column in the row. Each value is coerced to its column type. Columns you don’t mention are left untouched.
Required parameters
Section titled “Required parameters”| Parameter | Editor | Description |
|---|---|---|
row | expression | The row to modify, e.g. = row. |
values | dictionary | Columns to update as { column: value }. |
Optional parameters
Section titled “Optional parameters”None.
Output
Section titled “Output”None — modifies the row in place.
Example
Section titled “Example”Update name and age of a row at once:
Get Data Row table = = people index = 0 → output: row
Update Data Row row = = row values: { name: "Ana María", age: 40 }Related activities
Section titled “Related activities”- Set Cell — change a single column.
- Get Data Row — get the row to update by index.
- Data Types › DataRow.