Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Hello,
I'm using the Nuget package from https://github.com/microsoft/PowerBI-CSharp (v4.0.6/latest) within my C# projects to embed reports. ...
According to the API documentation (dashboards-generate-token-in-group & generate-embed-token ) of EmbedToken, I should be able to also embed Dashboards and Tiles into my a...
var identities = await CreateEffectiveIdentities(...);
var pbiDashboard = pbiClient.Dashboards.GetDashboard(workspaceGUID, dashboardGUID);
var tokenRequest = new GenerateTokenRequestV2(
datasets: null,
reports: null,
targetWorkspaces: new List<GenerateTokenRequestV2TargetWorkspace>() { new(worksapceGUID) },
identities: identities
)
var result = await pbiClient.EmbedToken.GenerateTokenAsync(tokenRequest);
To generate a Report token, I provide my datasets and reports (GenerateTokenRequestV2Report).
Solved! Go to Solution.
var p = new GenerateTokenRequest(TokenAccessLevel.View);
pbiClient.Dashboards.GenerateTokenAsync(request.WorkspaceId, pbiDashboard.Id, p);
As I finished, this question. I found I can use the old 'v1' with following code.
var p = new GenerateTokenRequest(TokenAccessLevel.View);
pbiClient.Dashboards.GenerateTokenAsync(request.WorkspaceId, pbiDashboard.Id, p);
As I finished, this question. I found I can use the old 'v1' with following code.
User | Count |
---|---|
8 | |
7 | |
2 | |
2 | |
2 |
User | Count |
---|---|
6 | |
5 | |
4 | |
4 | |
4 |