Forum Discussion
How to download Embedded power bi report in react using power bi apis
I have embedded power bi report in react, using there embeded services, now i want to that report in ppt or pdf formate through react, is it possible, where i make download button in react and onclick report will download. Or there other kind of solution available to download the report.
- Anonymous2 years ago
Hi Himanshu1710max ,
Could you please check the following info?
- If you are using the REST API exportToFile, it is not supported for Premium Per User (PPU).
- Ensure that the Power BI service principal or the user has the necessary permissions and that the access token is valid.
- Make sure the Power BI React component is correctly configured with the required properties such as embedUrl, accessToken, and tokenType:How to embed a Power BI item in a React app | Microsoft Learn
In addition, the following link is the thread which has the similar problem as yours. Hope it can help you.
Solved: API ExportTo method (preview) - "API is not access... - Microsoft Fabric Community
Sorted - was using the MyWorkspace version by mistake. Needed to use the "Export To File In Group" version.
Best Regards
3 Replies
- AnonymousNot applicable
Hi himnshusolution ,
We can use the following REST API to export report. However, it requires the report to be in a workspace backed by Premium, Embedded, or Fabric capacity.
Export Power BI embedded analytics reports API - Power BI | Microsoft Learn
Best Regards
- Himanshu1710maxNew Member
I used these exportToFile which is used to export to report in ppt,pdf,.
but when i applied these in react. then "Application is not accessable" is coming.- AnonymousNot applicable
Hi Himanshu1710max ,
Could you please check the following info?
- If you are using the REST API exportToFile, it is not supported for Premium Per User (PPU).
- Ensure that the Power BI service principal or the user has the necessary permissions and that the access token is valid.
- Make sure the Power BI React component is correctly configured with the required properties such as embedUrl, accessToken, and tokenType:How to embed a Power BI item in a React app | Microsoft Learn
In addition, the following link is the thread which has the similar problem as yours. Hope it can help you.
Solved: API ExportTo method (preview) - "API is not access... - Microsoft Fabric Community
Sorted - was using the MyWorkspace version by mistake. Needed to use the "Export To File In Group" version.
Best Regards