Forum Discussion
Publish Power BI Report from PowerShell
Hi Team,
Is there any Powershell cmdlet available for Replacing the PowerBI report which is already available in workspace. We can use New-PowerBIReport Command for Publishing new report but suppose we want to publish and replace same report in workspace then which cmdlet can help ?
Thanks in Advance!!
3 Replies
- Greg_DecklerCommunity Champion
Anonymous - I can't find anything for that here: https://docs.microsoft.com/en-us/rest/api/power-bi/reports/updatedatasources
But I could be missing something.
- AnonymousNot applicable
Hi Greg_Deckler ,
Thanks for the suggestion. I am able to find one parameter for New-PowerBIReport cmdlet called --ConflictAction which can be useful for this requirement.
We can find detail from here:
Thanks
- AnonymousNot applicable
New-PowerBIReport -Path $datasetName -WorkspaceId $worksapceid -ConflictAction CreateOrOverwrite
CreateOrOverwrite: it helps to create or write on existing one