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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
asivakumar
New Member

How to pass client id, secret key for the export to pdf in embedded application - React JS

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. 

 

 

1 REPLY 1
v-janeyg-msft
Community Support
Community Support

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:

Embed Power BI content in an embedded analytics application with service principal and an applicatio...

 

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

 

Embed Power BI content in an Power BI embedded analytics application with service principal and a ce...

 

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

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 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.