Flikk
Building flows

Row updated

Start a flow when a row in one of your tables changes.

A row_updated node starts a run each time a row in a table changes. The app shows this node as Row updated.

Spec

FieldMeaning
tableRequired. The table's id, which flikk tables list --columns slug,id shows.
columnsOptional. The column slugs to watch, so only a change to one of them starts a run. Leave it out to start on any change.
idsOptional. One row id or a list of them, so only changes to those rows start a run.
whereOptional. A condition the changed row must match, written as in Query rows.

A row has to pass every field you set. This trigger starts a run when a deal's stage changes and the deal is now won:

{
  "slug": "trigger",
  "type": "row_updated",
  "spec": {
    "table": "tbl_8f2k1",
    "columns": ["stage"],
    "where": { "kind": "rule", "left": "stage", "op": "is", "right": "won" }
  }
}

This one watches two specific rows:

{
  "slug": "trigger",
  "type": "row_updated",
  "spec": { "table": "tbl_8f2k1", "ids": ["row_3m9q", "row_7k2p"] }
}

A trigger has no earlier steps, so ids and the values in where are plain values and can't reference other steps.

Output

The output is the row after the change, keyed by column slug, with its _id. previous holds the old values of the columns that changed.

{
  "_id": "row_3m9q",
  "company": "Acme",
  "value": 25000,
  "stage": "won",
  "previous": { "stage": "proposal" }
}

Later steps read it as {{trigger.stage}} and {{trigger.previous.stage}}.

The trigger acts as the flow's owner, so the owner needs access to the table, the same as for table steps.

On this page