Get NotionPageProperty - fasteiner/Notion GitHub Wiki


Category: Commands external help file: Notion-help.xml Module Name: Notion online version: https://developers.notion.com/reference/retrieve-a-page-property#rollup-properties schema: 2.0.0 Type: Command

Get-NotionPageProperty

SYNOPSIS

Retrieves the properties of a specified Notion page.

SYNTAX

Get-NotionPageProperty [-PageId] <String> [-PropertyID] <String> [-ProgressAction <ActionPreference>]
 [<CommonParameters>]

DESCRIPTION

The `Get-NotionPageProperty` function fetches the properties of a Notion page by making a GET request to the Notion API. The properties are returned as a `notion_pageproperties` object for further use.

EXAMPLES

EXAMPLE 1

Get-NotionPageProperty -PageId "12345678-abcd-1234-efgh-56789ijklmn0"

This example retrieves the properties of the Notion page with the specified ID.

EXAMPLE 2

Get-NotionPageProperty -PageId "12345678-abcd-1234-efgh-56789ijklmn0" -PropertyID "6757567-98568907657-4435235"

This example retrieves the specified property of the Notion page with the specified ID.

PARAMETERS

-PageId

The unique identifier of the Notion page whose properties 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

-PropertyID

The unique identifier of the Notion page property to retrieve.

Type: String
Parameter Sets: (All)
Aliases:

Required: True
Position: 2
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_pageproperties]

Returns a notion_pageproperties object containing the properties of the specified Notion page.

NOTES

Requires the `Invoke-NotionApiCall` function and appropriate API authentication to be configured. Ensure you have access permissions for the specified page in Notion.

RELATED LINKS

https://developers.notion.com/reference/retrieve-a-page-property#rollup-properties

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