Forum Discussion
Passing a filter to an iFrame
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
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.