Get NotionPageChildren - fasteiner/Notion GitHub Wiki
Category: Commands external help file: Notion-help.xml Module Name: Notion online version: https://developers.notion.com/reference/get-block-children schema: 2.0.0 Type: Command
Retrieves the children blocks of a Notion page.
Get-NotionPageChildren [-PageId] <String> [-ProgressAction <ActionPreference>] [<CommonParameters>]
The `Get-NotionPageChildren` function acts as a wrapper for the `Get-NotionBlockChildren` function. It retrieves all child blocks associated with a specific Notion page, given its ID.
Get-NotionPageChildren -PageId "12345abcde"
Retrieves the child blocks of the Notion page with the ID `12345abcde`.
"67890fghij", "11223klmno" | ForEach-Object { Get-NotionPageChildren -PageId $_ }
Retrieves the child blocks for multiple Notion pages with IDs `67890fghij` and `11223klmno`.
$pageIds = @("12345abcde", "67890fghij")
$pageIds | Get-NotionPageChildren
Uses pipeline input to retrieve the child blocks for multiple Notion pages.
The unique identifier of the Notion page whose children are to be retrieved. This parameter is mandatory.
Type: String
Parameter Sets: (All)
Aliases: Id
Required: True
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
{{ Fill ProgressAction Description }}
Type: ActionPreference
Parameter Sets: (All)
Aliases: proga
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
Returns an array of notion_block
objects representing the child blocks of the specified Notion page.
- This function simplifies the process of retrieving child blocks by accepting a page ID and internally calling the `Get-NotionBlockChildren` function.
- Ensure that the Notion API is properly configured and authorized for use.