Forum Discussion

zoloturu's avatar
zoloturu
Memorable Member
8 years ago

How to get pages and visuals lists via REST API

Dear all,

 

I'm trying to embed my visual into Microsoft sample application https://microsoft.github.io/PowerBI-JavaScript/demo/v2-demo/index.html# .

 

But it requires Page Name and Visual Name. I thought I can get both via API, but which I can't retrieve it because there are no relevant methods https://docs.microsoft.com/en-us/rest/api/power-bi/. Maybe somebody has a workaround for that?

 

Dataset type is PushStreaming.

 

Regards,
Ruslan

 

7 Replies

  • Anonymous's avatar
    Anonymous
    Not applicable

    Is there an ETA from MSFT to do an official process/API to get page and visual level objects?

     

    This is a citical capability for our team. v-jiascu-msft 

  • We need a GET Visuals Per Page API, can somebody please work on that? This will create great opportunities to embed Power BI reports. I am having similar issues, I need to create a custom layout and the only way I can do that is by embedding the report, then getActivePage, then getVisuals and then updateSettings, so the user sees the initial content and then after the update the content changes, very bad UI.

  • artemmuntianu's avatar
    artemmuntianu
    Frequent Visitor

    Yes, there is a workaround. Open your report .pbix file with an archiver (WinRar for example) and goto folder Report. Open file Layout with a text processing app. It has json inside and needed info

    • zoloturu's avatar
      zoloturu
      Memorable Member

      artemmuntianu, thank you.

       

      Is below what you've wanted to say?

       

      visual name

      Anyway, I can't download a report because it was created online via Power BI Service because a source is Stream Analytics, so the dataset type is PushStreaming.

       

      Regards,
      Ruslan

       

      • v-jiascu-msft's avatar
        v-jiascu-msft
        Microsoft Employee

        Hi Ruslan,

         

        Open the "Sample Report", you will get all the pages, visuals, and codes. 

        How_to_get_pages_and_visuals_lists_via_REST_API

         

        Best Regards,

        Dale