Reply
Highlighted
Advisor
Posts: 307
Registered: ‎01-16-2018

How to get pages and visuals lists via REST API

[ Edited ]

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

 

Frequent Visitor
Posts: 8
Registered: ‎03-28-2018

Re: How to get pages and visuals lists via REST API

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

Advisor
Posts: 307
Registered: ‎01-16-2018

Re: How to get pages and visuals lists via REST API

[ Edited ]

@artemmuntianu, thank you.

 

Is below what you've wanted to say?

 

visual name.pngvisual 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

 

Community Support Team
Posts: 7,674
Registered: ‎05-02-2017

Re: How to get pages and visuals lists via REST API

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

Community Support Team _ Dale
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.