Return child blocks
Returns list of child blocks of parent block
Function ReturnChildBlocks(Val Token, Val BlockID) Export
| Parameter | CLI option | Type | Required | Description |
|---|---|---|---|---|
| Token | --token | String | ✔ | Token |
| BlockID | --block | String | ✔ | Parent 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);
- Bash
- CMD/Bat
oint notion ReturnChildBlocks \
--token "***" \
--block "32e82aa7-fc4e-81d6-8ff0-cde1b45633cf"
oint notion ReturnChildBlocks ^
--token "***" ^
--block "32e82aa7-fc4e-81d6-8ff0-cde1b45633cf"
Result
{
"object": "list",
"results": [],
"next_cursor": null,
"has_more": false,
"type": "block",
"block": {},
"request_id": "1652b6ac-58f8-489d-93ab-593771b8c02a"
}