FlowmageDocs

Search

BetaReads dataVersion 2

Finds Notion pages and databases by title.

Settings

SettingWhat it is
ConnectionRequiredThe Notion connection the step signs in with.
Title containsSearch only sees pages and databases somebody has shared with this integration. Leave it empty to list everything it can see.
Look for"any" or "page" or "data_source"
Newest first"descending" or "ascending"
Search the trash insteadtrue/false
Results per callnumber
Fetch every pageFollows Notion's cursor, and refuses past 5,000 results rather than answering a short list.
CursorPaste a previous run's Next cursor to read the page after it.
Technical details
KeyValue
connectiontexta connection id from `requires.connections` (provider `notion`)
querytextits `{{ }}` must give a string
objectType"any" or "page" or "data_source", by default "any"
sortDirection"descending" or "ascending", by default "descending"
inTrashtrue/false, by default false
limitnumber, by default 100
returnAlltrue/false, by default false
cursortext

Output

FieldType
resultsPages and databasesarray
resultCountResults in this answernumber
hasMoreMore results are waiting behind this pageboolean
nextCursorCursor for the next pagestring
Sample output, and the expression for each field
  • hasMorefalse
  • nextCursor""
  • resultCount0
  • results[]

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": {
    "connection": "<connection id>",
    "cursor": "",
    "inTrash": false,
    "limit": 100,
    "objectType": "any",
    "query": "",
    "returnAll": false,
    "sortDirection": "descending"
  },
  "label": "Search",
  "type": "notion.search",
  "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
ConnectionRequiredThe Notion connection the step signs in with.
Title containsSearch only sees pages and databases somebody has shared with this integration. Leave it empty to list everything it can see.
Look for"any" or "page" or "data_source"
Newest first"descending" or "ascending"
Search the trash insteadtrue/false
Results per callnumber
Fetch every pageFollows Notion's cursor, and refuses past 5,000 results rather than answering a short list.
Technical details
KeyValue
connectiontexta connection id from `requires.connections` (provider `notion`)
querytextits `{{ }}` must give a string
objectType"any" or "page" or "data_source", by default "any"
sortDirection"descending" or "ascending", by default "descending"
inTrashtrue/false, by default false
limitnumber, by default 100
returnAlltrue/false, by default false