Building flows
Row added
Start a flow when a row is added to one of your tables.
A row_added node starts a run each time a row is added to a table. The app shows this node as Row added.
Spec
| Field | Meaning |
|---|---|
table | Required. The table's id, which flikk tables list --columns slug,id shows. |
where | Optional. A condition the new row must match to start a run, written as in Query rows. Leave it out to start on every new row. |
This trigger starts a run for each new deal worth more than 20,000:
{
"slug": "trigger",
"type": "row_added",
"spec": {
"table": "tbl_8f2k1",
"where": { "kind": "rule", "left": "value", "op": "greater", "right": 20000 }
}
}A trigger has no earlier steps, so the values in where are plain values and can't reference other steps.
Output
The output is the new row, keyed by column slug, with its _id.
{ "_id": "row_3m9q", "company": "Acme", "value": 25000, "stage": "new" }Later steps read it as {{trigger.company}}, {{trigger._id}} and so on.
The trigger acts as the flow's owner, so the owner needs access to the table, the same as for table steps.
