< Back

Update-PBITableSchema

Sat Jan 18, 2020 8:44 pm

NAME Update-PBITableSchema



SYNOPSIS

Updates a PowerBI Dataset Table Schema.

Note: This operation will delete all the table rows





SYNTAX

Update-PBITableSchema [[-authToken] <String>] [-dataSetId] <String> [-table] <Object> [[-types] <Hashtable>]

[[-groupId] <String>] [<CommonParameters>]





DESCRIPTION

Updates a PowerBI Dataset Table Schema





PARAMETERS

-authToken <String>

The authorization token required to comunicate with the PowerBI APIs

Use 'Get-PBIAuthToken' to get the authorization token string



Required? false

Position? 1

Default value

Accept pipeline input? false

Accept wildcard characters? false



-dataSetId <String>



Required? true

Position? 2

Default value

Accept pipeline input? false

Accept wildcard characters? false



-table <Object>

The table object, this object must be one of two types: hashtable or System.Data.DataTable



If a hashtable is supplied it must have the following structure:



$table = @{

name = "TableName"

; columns = @(

@{ name = "Col1"; dataType = "Int64" }

, @{ name = "Col2"; dataType = "string" }

)

}



Required? true

Position? 3

Default value

Accept pipeline input? false

Accept wildcard characters? false



-types <Hashtable>



Required? false

Position? 4

Default value

Accept pipeline input? false

Accept wildcard characters? false



-groupId <String>

Id of the workspace where the reports will get pulled



Required? false

Position? 5

Default value

Accept pipeline input? false

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS



-------------------------- EXAMPLE 1 --------------------------



Update-PBITableSchema -authToken $authToken -dataSetId <dataSetId>-table <tableSchema>















RELATED LINKS