New NotionTable - fasteiner/Notion GitHub Wiki
Creates a new Notion table.
New-NotionTable [[-TableData] <Object[][]>] [[-has_column_header] <Boolean>] [[-has_row_header] <Boolean>]
[<CommonParameters>]
The New-NotionTable function creates a new Notion table with specified table data, column headers, and row headers.
$table = New-NotionTable -TableData @( @("Cell1", "Cell2"), @("Cell3", "Cell4") ) -has_column_header $true -has_row_header $false
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
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
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
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
This function requires the New-NotionTableRow function and the [notion_table_block] class to be defined.