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

Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers. Get Fabric certified for FREE! Learn more

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
PBIApril_Carousel

Power BI Monthly Update - April 2025

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

Notebook Gallery Carousel1

NEW! Community Notebooks Gallery

Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.

April2025 Carousel

Fabric Community Update - April 2025

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

Top Solution Authors