Skip to content

[ACTION] Improve Notion actions to loop block-creation, comply with request limits #13857

@TomFrankly

Description

@TomFrankly

I'd like the Notion actions that can create blocks to execute a loop that will allow for an arbitrary number of blocks to be created, beyond the limits of a single API request.

The relevant limits are:

  • A request can contain only 1,000 total blocks
  • A request that allows for a children array can handle nesting to 2 levels (e.g. you can do a Toggle block, with Paragraph children, which each have a Rich Text Object array). I'm not sure if the Rich Text Object array on a block counts as a level, so I'm not sure if you could do the above example at the same time you create a page (where the Toggles would be in the children array of the page).
  • Any array can have up to 100 elements
  • A Rich Text Object can have up to 2,000 characters

Is there a specific app this action is for?

Notion - specifically these actions:

  • Create Page (will need to create the page, then use the Append Block Children endpoint for additional blocks)
  • Create Page in Database (will need to create the page, then use the Append Block Children endpoint for additional blocks)
  • Append Blocks

Please provide a link to the relevant API docs for the specific service / operation.

https://developers.notion.com/reference/request-limits

Metadata

Metadata

Assignees

Labels

actionNew Action RequestenhancementNew feature or requestgood first issueGood for newcomershelp wantedExtra attention is neededtriagedFor maintainers: This issue has been triaged by a Pipedream employee

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions