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 now in read-only for platform upgrade. Learn more
We are using the PowerBI embed feature to embed PowerBI reports in our MVC .Net application. It works for all kind of reports excepts for Paginated reports. For paginated reports when we try to generate a token using GenerateTokenInGroupAsync method, it returns Operation returned an invalid status code 'BadRequest' error.
We are using the following piece of code to generate token, are we missing anything here for Paginated reports?
---------------------------------------------------------------------------------------------------------------------------
GenerateTokenRequest generateTokenRequestParameters = new GenerateTokenRequest(accessLevel: "view");
var tokenResponse = await client.Reports.GenerateTokenInGroupAsync(WorkspaceID, report.Id, generateTokenRequestParameters);
We were using Embed token to embed paginated report in our app which was incorrect. A paginated reports needs an Access token.
In fact Access Token should be enough to embed any powerBI report in your application.
Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.
| User | Count |
|---|---|
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |
| User | Count |
|---|---|
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |