Forum Discussion
Power BI in ASP Net MVC
- 9 years ago
AFAIK currently is not possible to hide filter panel or paging panel via REST API. Maybe we can upvote this :).
I tried using the same access token to embed report using powerbi.js, it didn't work. No console information, just blank screen
We can do it on powerbi.js though, see this link
Hope it helps
For privacy reason I can't publish report but thanks for the suggestion !
Thanks, with your second link and from this link I can get the AccessToken ;)
I connect to my PowerBI account ( AuthorizationCode) then I get the AccessToken and finally I want to display my reports
But I got an error on this line :
using (var response = request.GetResponse() as System.Net.HttpWebResponse)
Error 403 Forbidden.
On the register application power BI page I choose only Read All Reports
//Configure Reports request
System.Net.WebRequest request = System.Net.WebRequest.Create(
String.Format("https://api.powerbi.com/beta/myorg//Reports",
baseUri)) as System.Net.HttpWebRequest;
request.Method = "GET";
request.ContentLength = 0;
request.Headers.Add("Authorization", String.Format("Bearer {0}", accessToken));
//Get Reports response from request.GetResponse()
using (var response = request.GetResponse() as System.Net.HttpWebResponse) // here
EDIT : problem solve, thanks all !
Hi I am having the same issue, can get a token, but getting a 403 when I submit. What was your solution to get past the 403 in the Response?