Skip to main content

Power BI

New

[PowerBI Embedded] Get the reportid of a newly created report.

Vote (1) Share
's profile image

on 27 Mar 2017 10:49:59

While PowerBI embedded allows for multi-tenant solutions, it doesn't include many of the report management features (e.g. report permissions, subscriptions) that PowerBI does.

We're wrapping our own management features around PowerBI Embedded but to do so, we need the report id of reports created within the Embedded interface.

Currently, there are no events on the javascript side that will notify us of a report being created/saved.

Comments (2)
's profile image Profile Picture

4bc7eeca fe6b-4c42-b329-f2deb34c3009 on 05 Jul 2020 23:27:07

RE: [PowerBI Embedded] Get the reportid of a newly created report.

Hi,

In C# using the Power BI SDK, I would do a while-loop. In each iteration, call:

var reports = await client.Reports.GetReportsInGroupAsync(myAppWorkspacePowerBIId);

Then search the reports returned to find a matching one with the new report Name. If it's not there, loop again.

Or in Javascript / Typescript on the front-end, make requests to the Power BI REST API to do something similar, ie.

https://docs.microsoft.com/en-us/rest/api/power-bi/reports/getreportsingroup

's profile image Profile Picture

9618fa30 4c7c-4fdf-b98f-5878c5947ce6 on 05 Jul 2020 23:18:06

RE: [PowerBI Embedded] Get the reportid of a newly created report.

1.open https://app.powerbi.com/
2.select you workspace and reports
3.get url from browser url
sample:
https://app.powerbi.com/groups/XXXX-XXXX-XXXX/reports/YYYY-YYYY-YYY/ReportSection

groupID = XXXX-XXXX-XXXX
reportID = YYYY-YYYY-YYY