FlowmageDocs

List page content

BetaReads dataVersion 2

Reads the blocks that make up a Notion page.

Settings

SettingWhat it is
ConnectionRequiredThe Notion connection the step signs in with.
Page or block idRequiredA block that says has_children holds more blocks of its own — read those with a second call on that block's id.
Blocks per callnumber
Fetch every pageFollows Notion's cursor, and refuses past 5,000 blocks 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`)
blockIdtextits `{{ }}` must give a string
limitnumber, by default 100
returnAlltrue/false, by default false
cursortext

Output

FieldType
blocksarray
blockCountBlocks in this answernumber
hasMoreMore blocks are waiting behind this pageboolean
nextCursorCursor for the next pagestring
Sample output, and the expression for each field
  • blockCount0
  • blocks[]
  • hasMorefalse
  • nextCursor""

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": {
    "blockId": "<page or block id>",
    "connection": "<connection id>",
    "cursor": "",
    "limit": 100,
    "returnAll": false
  },
  "label": "List page content",
  "type": "notion.listBlocks",
  "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.
Page or block idRequiredA block that says has_children holds more blocks of its own — read those with a second call on that block's id.
Blocks per callnumber
Fetch every pageFollows Notion's cursor, and refuses past 5,000 blocks rather than answering a short list.
Technical details
KeyValue
connectiontexta connection id from `requires.connections` (provider `notion`)
blockIdtextits `{{ }}` must give a string
limitnumber, by default 100
returnAlltrue/false, by default false