Forum Discussion
Passing a filter to an iFrame
Hi all, please see my post: Filter a power BI tile on your web page
davidem Thanks very much for the helpful example. I'm almost sure this is the solution.
However I cannot as yet get it working, I suspect it is because I am using a free account to test with.
I am only able to see the dashboard I created back in October last year, new reports also are not showing when I use the latest code example project here (PowerBI-CSharp-master\samples\webforms\embed-a-tile-into-an-app): https://github.com/Microsoft/PowerBI-CSharp
davidem the account you are using in that example is a free or pro account?
- davidem10 years agoNew Member
SMutlow thanks. I also had problems with the CSharp code. I don't recall but I think it was related to the access token not being created properly. See also my articles about OAuth from a bash script to get some hints. Or this preview feature that may also be useful https://moraschi.com/2016/02/05/power-bi-publish-to-web-now-in-preview/
best regards
Davide
BTW I'm with a Pro account, but should not make difference, the APIs work just the same
- SMutlow10 years agoNew Member
davidem surely if my access token was incorrect I wouldnt see anything.
I am able to get the tile injected onto the page with both the example code and the javascript version in your example the only thing that is not working is the filter. All I see is the unfiltered tile while the oAuth syntax is seemingly correct.