New NotionTable - fasteiner/Notion GitHub Wiki

New-NotionTable

SYNOPSIS

Creates a new Notion table.

SYNTAX

New-NotionTable [[-TableData] <Object[][]>] [[-has_column_header] <Boolean>] [[-has_row_header] <Boolean>]
 [<CommonParameters>]

DESCRIPTION

The New-NotionTable function creates a new Notion table with specified table data, column headers, and row headers.

EXAMPLES

EXAMPLE 1

$table = New-NotionTable -TableData @( @("Cell1", "Cell2"), @("Cell3", "Cell4") ) -has_column_header $true -has_row_header $false

PARAMETERS

-has_column_header

Indicates whether the table has a column header. Default is $false.

Type: Boolean
Parameter Sets: (All)
Aliases:

Required: False
Position: 2
Default value: False
Accept pipeline input: False
Accept wildcard characters: False

-has_row_header

Indicates whether the table has a row header. Default is $false.

Type: Boolean
Parameter Sets: (All)
Aliases:

Required: False
Position: 3
Default value: False
Accept pipeline input: False
Accept wildcard characters: False

-TableData

The data for the table. This should be a two-dimensional array of objects.

Type: Object[][]
Parameter Sets: (All)
Aliases: data

Required: False
Position: 1
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_table_block] object

NOTES

This function requires the New-NotionTableRow function and the [notion_table_block] class to be defined.

RELATED LINKS

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