Forum Discussion

lherbert501's avatar
lherbert501
Icon for Post Prodigy rankPost Prodigy
1 year ago
Solved

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.

 

 

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

 

2 Replies

  • Anonymous's avatar
    Anonymous
    Not applicable

    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

     

     

    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.

     

    • Anonymous's avatar
      Anonymous
      Not applicable

      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.