FlowmageDocs

Select

Reads dataVersion 2

Finds the rows in a table that match your filters, in the order you sort them.

Settings

SettingWhat it is
TableRequiredRows are separate per environment. Editor runs — Test node and Execute — read and write the test copy.
Rows that matchEvery filter must match; values accept {{ }} expressions.
SortWithout a sort, rows come back oldest first.
Give back"all" or "first"
At mostPast this many, the first ones come back with a nextCursor for the rest.
If nothing matches"empty" or "fail"
SearchFree text over the text and date columns, on top of the filters — a table with neither matches nothing.
If more rowsWhat happens when more rows match than At most allows.
CursorContinue a previous select from its nextCursor.
Technical details
KeyValue
tableIdtexta table id from `requires.tables`
filterslist of {column: text, operator: text, value?: any JSON}, by default []
sortlist of {column: text, direction: "asc" or "desc"}, by default []
giveBack"all" or "first", by default "all"
atMostnumber, by default 100used when `giveBack` is "all"
ifNone"empty" or "fail", by default "empty"
searchtext
ifMoreRows"first" or "fail", by default "first"used when `giveBack` is "all"
cursortext

Output

FieldType
rowsarray
nextCursorCursor for the next pagestring
filteredCountRows matching the filternumber
totalCountRows in the tablenumber
tableChangedThe table changed while it was read — a row may be missingboolean
Sample output, and the expression for each field
  • filteredCount0
  • nextCursor"cursor_1"
  • rows[]
  • totalCount0

Errors

When a step of this node stops a run, the run page shows a code. Look it up:

Example step

The step as a flow file holds it. Replace each value in <…>.

{
  "config": {
    "atMost": 100,
    "cursor": "",
    "filters": [],
    "giveBack": "all",
    "ifMoreRows": "first",
    "ifNone": "empty",
    "search": "",
    "sort": [],
    "tableId": "<table>"
  },
  "label": "Select",
  "type": "table.select",
  "version": 2
}

Older versions

A flow that already has this version keeps running it. A new step always gets the newest.

Version 1
SettingWhat it is
TableRequiredRows are separate per environment. Editor runs — Test node and Execute — read and write the test copy.
FiltersEvery filter must match; values accept {{ }} expressions.
SortOrder rows before they are returned. Without a sort, rows come back oldest first.
SearchFree text over the text and date columns — a table with neither matches nothing.
Max rowsEmpty means this workspace's limit, which is also the most a select returns.
If more rowsReturn the first rows with a nextCursor to read a large table page by page.
CursorContinue a previous select from its nextCursor.
Technical details
KeyValue
tableIdtexta table id from `requires.tables`
filterslist of {column: text, operator: text, value?: any JSON}, by default []
sortlist of {column: text, direction: "asc" or "desc"}, by default []
searchtext
maxRowsnumber
ifMoreRows"fail" or "first", by default "fail"
cursortext