Forum Discussion

adam22's avatar
adam22
New Member
4 years ago
Solved

How To Obtain Report ID of RDL/Paginated Report that's embedded inside PowerBI Report?

 

Hi All.

 

How Do we get the ReportID of a Paginated Report from a Power BI Report ID?

 

Explanation:

With the new(ish) PowerBI RDL/Paginated report visual, you can embed a power bi paginated report inside a PowerBI report.

 

Now, in NOVEMBER 2021 - we can use this feature in App Owns Data/Customer Owns Data mode of embedding.

https://powerbi.microsoft.com/en-gb/blog/power-bi-november-2021-feature-summary/#post-17912-_Toc87473967 (

(Support embedding a Power BI report that contains a paginated report visual)

 

Great... except. we need to know the ReportID of the RDL/Paginated Report, but, as a software application, we only have the POWER BI Report ID.

 

 

Existing GetReport API Doesn't give the 'linked RDL Reports' https://docs.microsoft.com/en-us/rest/api/power-bi/reports/get-report 

 

 

 

 

 

 

{
  "datasetId": "cfafbeb1-8037-4d0c-896e-a46fb27ff229",
  "id": "5b218778-e7a5-4d73-8187-f10824047715",
  "name": "SalesMarketing",
  "webUrl": "https://app.powerbi.com//reports/5b218778-e7a5-4d73-8187-f10824047715",
  "embedUrl": "https://app.powerbi.com/reportEmbed?reportId=5b218778-e7a5-4d73-8187-f10824047715"
}

 

 

 

 

 

 

So, Where/How Do we get the ID of an RDL file from a Report?

 

Please help.

 

I'm not asking how to generate the token, I know that part, but I'm asking how to obtain the information needed to generate the token. I can follow this then Generate an EmbedToken for a Power BI report with a paginated visual. The paginated Report ID "(f904...

 

 

 

 

 

 

 

  • Hi adam22 embedding a PBIX report which contains an RDL visual is relatively a new feature in Power BI, and as far as I know there isn't a way currently for retrieving the RDL report ID programatically.

    From what I heard such ability might be added in the future, but I don't know how and when.

7 Replies

    • adam22's avatar
      adam22
      New Member

      Hi, thanks for your reply.

       

      Yes I understand I could get ALL the RDL Report Ids from that call. That's the call we use for the Admins to choose what reports show on what dashboard in our application.

       

      However, there is no way of knowing which RDL Report is referenced from/is inside which PBIX Report. As such, we'd have to create a security access token to EVERY RDL Report in the workspace.

       

      We can't go creating an access token for user's for every RDL report in a workspace, they could end up getting access to reports they should not see.

       

       

      Below is a diagram that I hope explains the problem, we have no way of obtaining the items with the RED X through APIs. [apart from as you say, getting ALL the RDL report ids, which is a security risk surely]

       

       

      Please help 🙂

       

      • AmosHersch's avatar
        AmosHersch
        Microsoft Employee

        Hi adam22 embedding a PBIX report which contains an RDL visual is relatively a new feature in Power BI, and as far as I know there isn't a way currently for retrieving the RDL report ID programatically.

        From what I heard such ability might be added in the future, but I don't know how and when.