March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
Is it possible to embed a Power BI report in a php application. If so, how to generate access token and embed url using php?
Any help will be appreciated. Thank you in advance.
Solved! Go to Solution.
Hi @verma_pragya ,
There are a number of steps you need to take:
Now you should have a workspace id.
Now you should have a report id.
And now you should have a report in your app.
Reference: https://stackoverflow.com/questions/39770804/use-powerbi-embedded-in-php
Best Regards,
Stephen Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @verma_pragya ,
There are a number of steps you need to take:
Now you should have a workspace id.
Now you should have a report id.
And now you should have a report in your app.
Reference: https://stackoverflow.com/questions/39770804/use-powerbi-embedded-in-php
Best Regards,
Stephen Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Power BI Embedded (microsoft.com) You'll probably want to go with the JavaScript API. Do you have Azure AD?
Yes, I have Azure AD. I can embed a report using c# and python to generate the access token and embed URL, and javascript rest APIs to embed. However, I have no clue on how to generate access token using PHP, since I want to embed report in my PHP application.
I'm working on a similar problem...trying to embed for customers in Drupal. So far, my solution is to use the python (with flask) solution and potentially embed the flask service URL (localhost:5000 for now) in an iframe to serve the report. It works in my local Drupal instance. I'm working on how to pass the Drupal user id to the Javascript and then to the PowerBI API for row level security.
Good luck!!
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
7 | |
3 | |
2 | |
1 | |
1 |
User | Count |
---|---|
8 | |
3 | |
2 | |
2 | |
2 |