Forum Discussion

Meghmala's avatar
Meghmala
Regular Visitor
7 years ago
Solved

Export Power BI report template from a desktop report using powershell

I would like to know how to export Power BI template from a Power BI desktop report using power shell? or perform this action using a C# application   I found this link on th web. But it seems lik...
  • Anonymous's avatar
    Anonymous
    7 years ago

    HI Meghmala ,

    As document mentioned, this script require objectid to export specific contents. I think you need to use report id to instead.

     

    Spoiler

    Parameters

    -Id

    ID of the report to export.

    Type: Guid
    Aliases: ReportId
    Position: Named
    Default value: None
    Accept pipeline input: True (ByPropertyName)
    Accept wildcard characters: False
    -OutFile

    Output file to save the exported report to. Path must not already exist.

    Type: String
    Position: Named
    Default value: None
    Accept pipeline input: False
    Accept wildcard characters: False
    -WorkspaceId

    ID of the workspace containing the Power BI report to export.

    Type: Guid
    Aliases: GroupId
    Position: Named
    Default value: None
    Accept pipeline input: False
    Accept wildcard characters: False

     

    In addition, did this report create on power bi service? Current export not works on online report.

    Export a report from Power BI service to Desktop (Preview)

    Regards,

    Xiaoxin Sheng