Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
We are working on an embedded app that uses react js that embeds powerbi dashboard and rest api for the export to pdf functionality.
Currently, export to pdf takes more than 1.30 minutes to download the pdf for a minimum of 4 pages. We are now passing bearer token. We are not able to get the code for react js to pass the service principle id and secret key so we can try optimizing the speed of the download.
Hi, @asivakumar
Sorry, I don't know how to use react js. But I find some reference documents. Hope it helps.
Embed Power BI content with service principal and an application secret:
Use Power BI API with service principal (Preview) | Microsoft Power BI Blog | Microsoft Power BI
How to embed a Power BI component in a React app | Microsoft Docs
Did I answer your question ? Please mark my reply as solution. Thank you very much.
If not, please feel free to ask me.
Best Regards,
Community Support Team _ Janey
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
Check out the November 2025 Power BI update to learn about new features.