Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
I've created a c# app that queries the Power BI api for Groups, Dashboards, Tiles and Reports. I can successfully return Groups, Dashboards and Reports names and embed URLs for Reports. I get a "NotFound" error when I try to use the
GET https://api.powerbi.com/beta/myorg/dashboards/{dashboard_id}/tiles URL for the request for Tiles. When I try to open a Report using the embed url in the iframe it continutes to try to load showing the travel dots across the page. Has anyone else experienced this? Thank you.
Solved! Go to Solution.
So I've fixed the other issue of not being able to find the tiles api url. This might need updating in the documentation. It appears that for a users workspace you use: "https://api.powerbi.com/beta/myorg/dashboards/" + ds1.Id + "/tiles", however for groups you need to qualify with the specific group id: "https://api.powerbi.com/beta/myorg/groups/" + ds1.Id + "/dashboards/" + ds3.Id + "/tiles". This was a little confusing. But now I show all dashboards, reports and tiles.
So I've fixed the other issue of not being able to find the tiles api url. This might need updating in the documentation. It appears that for a users workspace you use: "https://api.powerbi.com/beta/myorg/dashboards/" + ds1.Id + "/tiles", however for groups you need to qualify with the specific group id: "https://api.powerbi.com/beta/myorg/groups/" + ds1.Id + "/dashboards/" + ds3.Id + "/tiles". This was a little confusing. But now I show all dashboards, reports and tiles.
So I fixed the first one. I was indeed injecting the token in the iframe but it was tied to the click event for setting the url which was too soon since the url hadn't loaded yet in the iframe. I added an event handler for the iframe onload event and then injected the token and now works as expected.
However I'm still getting a not found error for the api call for the tiles operation. It's as if there isn't a listerner on the other end using the format I referenced above. Thank You
Are you adding a valid access token when you render the iframe?
Yes I am injecting the token. The iframe content appears to be valid because when i inspect the script in the header in the iframe it has all of my relevant info, just the bouncing dots never stops trying to load. I'm also listening for messages from the iframe and below is a snip from the iframe content. Thank you.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
16 | |
2 | |
2 | |
1 | |
1 |
User | Count |
---|---|
21 | |
2 | |
2 | |
2 | |
2 |