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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

Find out what's new and trending in the Fabric community.