Forum Discussion

wsdcawefwqrevfq's avatar
3 years ago

Link a ResportSection GUID and Bookmark GUID back to the names of the Tab and Bookmark.

In the Power Bi Service, the URL for a report contains two parts that specify the Tab and a bookmark. GUID replaced with zeros

ReportSection00000000000000000000   <-Report GUID

Bookmark00000000000000000000          <- Bookmark

 

It would be really Sweet if there were some way to retrieve the names of the Tab and Bookmark from the service using these GUIDs, in the context of a PBi report.

 

Is that a Pipe Dream?

 

Thx

4 Replies

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi  wsdcawefwqrevfq ,

     

    You can try retrieving report sections and bookmarks using the Power BI REST API and then match their GUIDs to their corresponding names.

    Here are my steps you can follow as a solution.

    1. Follow the authentication process described in the API documentation to obtain an access token for the Power BI REST API.

    2. Use the API to retrieve the report definition, which includes sections and bookmarks. You can do this by sending GET requests to the following endpoints:

    GET https://api.powerbi.com/v1.0/myorg/reports/{reportId}/versions/{versionId}/microsoft.graph.getReport

    3.Extract the section and bookmark GUIDs from the report definition. The sections and bookmarks are listed in the sections and bookmarks arrays, respectively. Each section and bookmark has a name and a displayName property, which you can use to match the GUID with the corresponding name.
    4.Output the results in a format that's useful to you.

     

    Best Regards,

    Neeko Tang

    If this post  helps, then please considerAccept it as the solution  to help the other members find it more quickly. 

    • wsdcawefwqrevfq's avatar
      wsdcawefwqrevfq
      Icon for Helper I rankHelper I

      Can you elaborate on what values should take the place of "myorg" and Version ID?

      Is Myorg the tennet ID, Workspace ID, or App ID (GUIDS)

      I have no idea what the version could be.

       

      Thx

  • I have been looking at one of our Power Bi Service Apps.

    It displays all the reports loaded into the app and the pages of that report:

     

    I am wondering if there is a way to connectto the App and access this information?

     

    Thx