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 = "29c82aa7-fc4e-8157-a724-f8cacfb4c3e4";

Result = OPI_Notion.ReturnChildBlocks(Token, Block);
    oint notion ReturnChildBlocks \
--token "***" \
--block "29c82aa7-fc4e-811d-a064-d61c167e6737"
Result
{
"object": "list",
"results": [],
"next_cursor": null,
"has_more": false,
"type": "block",
"block": {},
"request_id": "8bf87e8d-8ef9-47ee-bbbf-c22e9cee386c"
}