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

Get certified in Microsoft Fabric—for free! For a limited time, the Microsoft Fabric Community team will be offering free DP-600 exam vouchers. Prepare now

Reply
lherbert501
Post Patron
Post Patron

Power BI Embed Token & Playground

Hi,

 

I have used this sample and through setting up everything and entering the GUID's I have sucessfully outputted the embed URL and also a token.

 

I can also succesfully get the output I want on the Power BI Playground, from entering the 3 parameters below from the outputted sample above.

 

lherbert501_0-1728894770838.png

 

My question and where I'm struggling, is how can I translate what the Power BI Playground is doing above into code or to essentially test it without the playground, so it can pass in the token and URL.

 

Has anybody succesfully done this that can help?

 

Thanks

 

Liam

 

1 ACCEPTED SOLUTION
v-xianjtan-msft
Community Support
Community Support

Hi @lherbert501 

 

In Playground, select the report you want to embed, and Playground will generate the appropriate code snippet.
In the web application, use the Power BI JavaScript API to embed the report.

You can refer to these links for more:

how-to-embed-power-bi-report-in-web-application 

Embed content in your Power BI embedded analytics application - Power BI | Microsoft Learn

 

vxianjtanmsft_0-1728969317783.png

 

Best Regards,
Jarvis Tang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

View solution in original post

2 REPLIES 2
v-xianjtan-msft
Community Support
Community Support

Hi @lherbert501 

 

In Playground, select the report you want to embed, and Playground will generate the appropriate code snippet.
In the web application, use the Power BI JavaScript API to embed the report.

You can refer to these links for more:

how-to-embed-power-bi-report-in-web-application 

Embed content in your Power BI embedded analytics application - Power BI | Microsoft Learn

 

vxianjtanmsft_0-1728969317783.png

 

Best Regards,
Jarvis Tang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

Hi @lherbert501 

 

Just having a good follow up on this case, may I ask if my previous reply helped you to solve the problem?

If so, please consider accepting the previous reply as a solution and feel free to contact me if you have any other questions.

 

Best Regards,
Jarvis Tang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
OCT PBI Update Carousel

Power BI Monthly Update - October 2024

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

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

October NL Carousel

Fabric Community Update - October 2024

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