Forum Discussion

AnonDev's avatar
AnonDev
New Member
6 years ago

Export Embedded Power BI Report

Hi, 

 

I'm currently tasked with exporting Power Bi Reports in an Angular/.Net Embedding Application with the newly released functionality as seen here: https://docs.microsoft.com/en-us/power-bi/developer/embedded/export-to#step-3---getting-the-file.

 

I'm using the snippets they provided here but I'm getting no Export Id when running this line: 

 var export = await client.Reports.ExportToFileInGroupAsync(workspaceid, reportid, exportRequest); 
 
Is groupId different from workspaceid? Any other ideas on why this is not working? With no workspaceId the polling doesn't work which means the export doesn't work.
 
Thanks for the help.
 

4 Replies

    • AnonDev's avatar
      AnonDev
      New Member

      Hi Anonymous 

       

      Thanks for the reply. I'll double check with the premium capacity. Other work I've done on this is just collecting Embed information and I haven't run into permissions issues there. If you do get it working, would it be possible to share the differences with the given snippet from Microsoft? 

      • Anonymous's avatar
        Anonymous
        Not applicable

        Of course. I will try and spend some more time on this later and share what I find.
        Cheers, Matt