Building flows
Update rows
Change rows in one of your tables as a step in a flow.
The table_update node sets new values on rows, which you pick either by id or with a condition.
Spec
| Field | Meaning |
|---|---|
table | Required. The table's id, which flikk tables list --columns slug,id shows. |
ids | The ids of the rows to change, as a list or a reference to an earlier step's rows. Give either ids or where. |
where | A condition the rows must match, written as in Query rows. Give either ids or where. |
set | Required. The new values by column slug, and columns you leave out keep their values. |
This node marks the deals that a Find rows step named find_deals found:
{
"slug": "close_deals",
"type": "table_update",
"spec": {
"table": "tbl_8f2k1",
"ids": "{{find_deals.rows}}",
"set": { "stage": "closed" }
}
}ids takes a list of ids, one id, ids separated by commas, or a list of rows, from which it reads each row's _id.
Output
| Field | Meaning |
|---|---|
rows | The changed rows with their new values. |
{
"rows": [{ "_id": "row_3m9q", "name": "Ana", "email": "ana@example.com", "stage": "closed" }]
}