This is best Fabric, Power BI, SQL and AI community event. How do we know? The last event sold out! Save €200 with code FABCMTY200.
Register nowThe Fabric community is upgrading! Read all of the details including the timeline and what you can expect. Learn more
I have generated token using code
string authorityUriToken = "https://login.microsoftonline.com/{tenantid}";
AuthenticationContext authContextToken = new AuthenticationContext(authorityUriToken);
AuthenticationResult token = authContextToken.AcquireTokenAsync(resourceUri,client).Result;
Using that token get dahsboard list with embdede url
System.Net.WebRequest request = System.Net.WebRequest.Create(String.Format("{0}groups/{1}/dashboards", baseUri, _objPowerBIWorkspace.WorkspaceID)) as System.Net.HttpWebRequest;
request.Method = "GET";
request.ContentLength = 0;ViewBag.Token = Token;
request.Headers.Add("Authorization", String.Format("Bearer {0}", Token));var response = request.GetResponse() as System.Net.HttpWebResponse;
But when i have try to get see dashboard reports it return error
When check in network calls, found below url with 403 status code
Request Call
Resposne
{"Message":"API is not accessible for application"}
API access already given
Please help
Please read about the difference between "dashboard" and "report" in the context of Power BI.
I have checked that one. My workspace having dahsboard and reports. I was showing dashbaord in my application. But after enabling 2FA it is not showing in application.
Any suggestion
Can you try the call in the sandbox?
Dashboards - Get Dashboards In Group - REST API (Power BI Power BI REST APIs) | Microsoft Learn
Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.
| User | Count |
|---|---|
| 13 | |
| 11 | |
| 9 | |
| 6 | |
| 5 |