< Back

Set-PBIReportContent

Sat Jan 18, 2020 8:43 pm

NAME Set-PBIReportContent



SYNOPSIS

Replaces a target reports content with content from another source report in the same or different workspace





SYNTAX

Set-PBIReportContent [[-authToken] <String>] [-report] <Object> [[-groupId] <String>] [-targetReportId] <String>

[[-targetGroupId] <String>] [<CommonParameters>]





DESCRIPTION

Replaces a target reports content with content from another source report in the same or different workspace





PARAMETERS

-authToken <String>

The authorization token required to communicate 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



-report <Object>

The PBI Report Object or Report Id (GUID)



Required? true

Position? 2

Default value

Accept pipeline input? true (ByValue)

Accept wildcard characters? false



-groupId <String>



Required? false

Position? 3

Default value

Accept pipeline input? false

Accept wildcard characters? false



-targetReportId <String>

The target report id that content will get overwriten



Required? true

Position? 4

Default value

Accept pipeline input? false

Accept wildcard characters? false



-targetGroupId <String>

The target report workspace id



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



PS C:\\>$sourceReport = Get-PBIReport -name "SourceReportName"



$targetReport = Get-PBIReport -name "TargetReportName"

$sourceReport | Set-PBIReportContent -targetReportId $targetReport.id











RELATED LINKS