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
| Field | Meaning |
|---|---|
table | Required. The table's id, which flikk tables list --columns slug,id shows. |
where | Optional. A condition the rows must match, written as in Query rows. Leave it out to read every row. |
limit | Optional. How many rows to return, from 1 to 1000. Defaults to 100. |
columns | Optional. 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
| Field | Meaning |
|---|---|
rows | The matching rows, each with its _id and its values by column slug. |
{
"rows": [{ "_id": "row_3m9q", "name": "Ana", "email": "ana@example.com", "stage": "won" }]
}