< Back

Set-PBIDatasetParameters

Sat Jan 18, 2020 8:43 pm

NAME Set-PBIDatasetParameters



SYNOPSIS

Change parameter values in one or more datasets.





SYNTAX

Set-PBIDatasetParameters [[-authToken] <String>] [-dataset] <Object> [-parameters] <Object> [[-groupId] <String>]

[<CommonParameters>]





DESCRIPTION





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



-dataset <Object>



Required? true

Position? 2

Default value

Accept pipeline input? true (ByValue)

Accept wildcard characters? false



-parameters <Object>

An hashtable with the following structure:



$parameters = @(

@{

name="ParameterName"

newValue="NewParameterValue"

},

...

)



Required? true

Position? 3

Default value

Accept pipeline input? false

Accept wildcard characters? false



-groupId <String>



Required? false

Position? 4

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



PS C:\\>Set-PBIDatasetParameters -dataset "GUID" -parameters @(...)













-------------------------- EXAMPLE 2 --------------------------



PS C:\\>Get-PBIDataSet -name "Dataset name" | Set-PBIDatasetParameters -parameters @(...)















RELATED LINKS