Skip to main content

Return child blocks

Returns list of child blocks of parent block

Function ReturnChildBlocks(Val Token, Val BlockID) Export

ParameterCLI optionTypeRequiredDescription
Token--tokenStringToken
BlockID--blockStringParent block ID
Returns

Map Of KeyAndValue - serialized JSON response from Notion

1C:Enterprise/OneScript code example
Token = "secret_9RsfMrRMqZwqp0Zl0B...";
Block = "29d82aa7-fc4e-8196-bfa0-e3dd8f77f4ee";

Result = OPI_Notion.ReturnChildBlocks(Token, Block);
oint notion ReturnChildBlocks \
--token "***" \
--block "38382aa7-fc4e-8198-8b7a-c7347441b397"
Result
{
"object": "list",
"results": [],
"next_cursor": null,
"has_more": false,
"type": "block",
"block": {},
"request_id": "eae9e327-18be-47c5-8998-afc6e5a5df93"
}