Flikk
Building flows

Find rows

Read rows from one of your tables as a step in a flow.

The table_query node reads the rows of a table that match a condition, and later steps use them through {{slug.rows}}.

Spec

FieldMeaning
tableRequired. The table's id, which flikk tables list --columns slug,id shows.
whereOptional. A condition the rows must match, written as in Query rows. Leave it out to read every row.
limitOptional. How many rows to return, from 1 to 1000. Defaults to 100.
columnsOptional. The column slugs to return. Defaults to every column.
{
  "slug": "find_deals",
  "type": "table_query",
  "spec": {
    "table": "tbl_8f2k1",
    "where": {
      "kind": "group",
      "conj": "and",
      "items": [
        { "kind": "rule", "left": "stage", "op": "is", "right": "won" },
        { "kind": "rule", "left": "email", "op": "is", "right": "{{trigger.email}}" }
      ]
    },
    "limit": 10
  }
}

A right value takes {{...}} references, so a rule can compare a column with the trigger's data or an earlier step's output.

Output

FieldMeaning
rowsThe matching rows, each with its _id and its values by column slug.
{
  "rows": [{ "_id": "row_3m9q", "name": "Ana", "email": "ana@example.com", "stage": "won" }]
}

On this page