BuildcordDocs

Find rows

Look up rows in a collection.

data.query finds rows in a collection and reads the first into the run.

Settings

SettingWhat it does
CollectionThe collection to search.
WhereA condition, such as user = {user.id}. Empty matches every row.
Sorted byA column, then desc for largest first, such as score desc. Empty keeps the oldest first.
LimitHow many rows to find. The default is 1.
Read the row asThe name to read the row under. Its columns are {row.column} unless you name it.

Ways out

Way outTaken when
FoundAt least one row matched.
Nothing foundNone did.

Produces

TokenValue
{row.id}The number of the row found
{row.column}Each column of the row
{rows.count}How many rows matched

Notes

  • Name the row with Read the row as when a later step finds a different row and you still need this one.
  • The canvas shows Collection where condition.

Example

Find the member's open ticket with user = {user.id} and status = open. If Nothing found, create one.

On this page