Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hi,
I won't be able to render report if i call to cerate a new blank report. I'm using service principle and workspace has access to that group.
Request ID: 3b53dfd6-ebe9-7569-8845-91093ec6898c
var pbiReport = pbiClient.Reports.GetReportInGroup(args.GroupId, args.ReportId);
var dataset = await this._datasetService.GetByIdRaw(args.GroupId, pbiReport.DatasetId).ConfigureAwait(false);
var parameters = this.BuildTokenRequestParameters(dataset, TokenAccessLevel.Create, true);
var createToken = await pbiClient.Reports.GenerateTokenForCreateInGroupAsync(args.GroupId, parameters);
if (createToken == null)
{
throw new NullReferenceException("Failed to generate embed token");
}
return new CreateReport
{
DatasetId = dataset.Id,
EmbedUrl = pbiReport.EmbedUrl,
EmbedToken = createToken
};
Embeding from JS
const config = {
tokenType: models.TokenType.Aad,
accessToken: accessToken,
embedUrl: embedUrl,
datasetId: datasetId
};
var report = powerbi.createReport(reportContainer, config);
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.