Settings
| Setting | What it is |
|---|---|
| ConnectionRequired | The Notion connection the step signs in with. |
| Title contains | Search 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 instead | true/false |
| Results per call | number |
| Fetch every page | Follows Notion's cursor, and refuses past 5,000 results rather than answering a short list. |
| Cursor | Paste a previous run's Next cursor to read the page after it. |
Technical details
| Key | Value |
|---|---|
connection | texta connection id from `requires.connections` (provider `notion`) |
query | textits `{{ }}` must give a string |
objectType | "any" or "page" or "data_source", by default "any" |
sortDirection | "descending" or "ascending", by default "descending" |
inTrash | true/false, by default false |
limit | number, by default 100 |
returnAll | true/false, by default false |
cursor | text |
Output
| Field | Type |
|---|---|
resultsPages and databases | array |
resultCountResults in this answer | number |
hasMoreMore results are waiting behind this page | boolean |
nextCursorCursor for the next page | string |
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
| Setting | What it is |
|---|---|
| ConnectionRequired | The Notion connection the step signs in with. |
| Title contains | Search 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 instead | true/false |
| Results per call | number |
| Fetch every page | Follows Notion's cursor, and refuses past 5,000 results rather than answering a short list. |
Technical details
| Key | Value |
|---|---|
connection | texta connection id from `requires.connections` (provider `notion`) |
query | textits `{{ }}` must give a string |
objectType | "any" or "page" or "data_source", by default "any" |
sortDirection | "descending" or "ascending", by default "descending" |
inTrash | true/false, by default false |
limit | number, by default 100 |
returnAll | true/false, by default false |