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

Get-NotionPageChildren

SYNOPSIS

Retrieves the children blocks of a Notion page.

SYNTAX

Get-NotionPageChildren [-PageId] <String> [-ProgressAction <ActionPreference>] [<CommonParameters>]

DESCRIPTION

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.

EXAMPLES

EXAMPLE 1

Get-NotionPageChildren -PageId "12345abcde"

Retrieves the child blocks of the Notion page with the ID `12345abcde`.

EXAMPLE 2

"67890fghij", "11223klmno" | ForEach-Object { Get-NotionPageChildren -PageId $_ }

Retrieves the child blocks for multiple Notion pages with IDs `67890fghij` and `11223klmno`.

EXAMPLE 3

$pageIds = @("12345abcde", "67890fghij")
$pageIds | Get-NotionPageChildren

Uses pipeline input to retrieve the child blocks for multiple Notion pages.

PARAMETERS

-PageId

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

-ProgressAction

{{ 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

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

OUTPUTS

[notion_block[]]

Returns an array of notion_block objects representing the child blocks of the specified Notion page.

NOTES

  • 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.

RELATED LINKS

https://developers.notion.com/reference/get-block-children

⚠️ **GitHub.com Fallback** ⚠️