Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
I am trying to create PowerBI report using PowerBI Embedded SDK , I have followed below github article.
https://github.com/Microsoft/PowerBI-JavaScript/wiki/Create%5CEdit-Report-in-Embed-View
Could you please elaborate on how to generate the access token?
Accesstoken generated using below code is not valid and it return 403 error on PowerBI.createreport function.
using Microsoft.PowerBI.Security;
// rlsUsername and roles are optional
string scopes = "Dataset.Read Workspace.Report.Create";
PowerBIToken embedToken = PowerBIToken.CreateReportEmbedTokenForCreation(workspaceCollectionName, workspaceId, datasetId, null, null, scopes);
var token = embedToken.Generate("{access key}");
Also where to get the Access Key as show in last line of above code?
Thank You
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
14 | |
2 | |
2 | |
1 | |
1 |