Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
himnshusolution
Frequent Visitor

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.

1 ACCEPTED SOLUTION
Anonymous
Not 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

View solution in original post

3 REPLIES 3
Himanshu1710max
New 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.

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

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

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.