Notion append block bug

Hello,

I wanna make new notion page and after that loop over array each time append block, according to N8N instead of block id can be used page idimage

This return empty 400 error, according to notion API docs this can mean wrong block id or Rate limits

  • wrong block id - I could not find confirmation that page id is okay instead of block id, but also I do not see way how to get block id from page id
  • rate limit - probably not because they say “3 requests per second” what I not extend also I copied some block id, and it worked

What I do not understand is that at the very 1 try it worked but only once, and I could not reproduce it

Anyone maybe knows how to deal with that?
Thank you in advance!

It only works with the first item because the second notion node (append:block) receives 4 items as input and the first notion node (databasePage:create) returns only one item. In order words, after the first iteration, the expression {{$node["Notion"].parameter["databaseId"]}} resolves to undefined. To fix the issue, set the block_id parameter with the expression: {{ $item(0).$node["Notion"].json["id"] }} instead. You can also check the example workflow below:

1 Like