<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: PBIE Report Visuals API Endpoint in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/PBIE-Report-Visuals-API-Endpoint/m-p/2460987#M35577</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/378727"&gt;@KieranNZ&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Please review the following links and check whether they are what you want. Hope they can help you resolve the problem...&lt;/P&gt;
&lt;P&gt;&lt;A href="https://docs.microsoft.com/en-us/javascript/api/overview/powerbi/get-visuals" target="_self"&gt;Get pages and visuals&lt;/A&gt;&lt;/P&gt;
&lt;TABLE border="1" width="100%"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="100%"&gt;&lt;EM&gt;&lt;STRONG&gt;let pages = await page.getVisuals();&lt;/STRONG&gt;&lt;/EM&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&lt;A href="https://blog.crossjoin.co.uk/2022/01/16/getting-the-ids-of-all-visuals-in-a-power-bi-report-page-using-the-power-bi-embedded-analytics-playground/" target="_self"&gt;Getting The IDs Of All Visuals In A Power BI Report Page Using The Power BI Embedded Analytics Playground&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="yingyinr_0-1650264099965.gif" style="width: 999px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/700964i25EC8AFE835FA9BF/image-size/large?v=v2&amp;amp;px=999" role="button" title="yingyinr_0-1650264099965.gif" alt="yingyinr_0-1650264099965.gif" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://stackoverflow.com/questions/63144582/get-visuals-from-power-bi-report-through-api-call" target="_self"&gt;Get visuals from Power BI report through API Call&lt;/A&gt;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;You cannot get them with the REST API but you can with the Javascript API&lt;/P&gt;
&lt;P&gt;If you did the following to embed your report&lt;/P&gt;
&lt;PRE class=""&gt;&lt;CODE class=""&gt;&lt;SPAN class=""&gt;var report = powerbi.&lt;SPAN class=""&gt;embed(reportContainer, config);&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;You could then do the following PowerBI Javascript API call to get all of the visuals on the first page of the embedded report and store them in a&lt;SPAN&gt;&amp;nbsp;&lt;EM&gt;MyReportVisuals&lt;SPAN&gt;&amp;nbsp;variable to do whatever you want with.&lt;/SPAN&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE class=""&gt;&lt;CODE class=""&gt;report.&lt;SPAN class=""&gt;getPages().&lt;SPAN class=""&gt;then(&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;pages =&amp;gt; {
            pages[&lt;SPAN class=""&gt;0].&lt;SPAN class=""&gt;getVisuals().&lt;SPAN class=""&gt;then(&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;visuals =&amp;gt; &lt;SPAN class=""&gt;MyReportVisuals = visuals)
        });&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Best Regards&lt;/P&gt;</description>
    <pubDate>Mon, 18 Apr 2022 07:05:58 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2022-04-18T07:05:58Z</dc:date>
    <item>
      <title>PBIE Report Visuals API Endpoint</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/PBIE-Report-Visuals-API-Endpoint/m-p/2455843#M35528</link>
      <description>&lt;P&gt;I understand that we can embed individual visualizations, however getting a list of visuals on a report or report page is not straight-forward. This is the current workaround as I understand it:&amp;nbsp;&lt;LI-MESSAGE title="How to get pages and visuals lists via REST API" uid="470327" url="https://community.powerbi.com/t5/Developer/How-to-get-pages-and-visuals-lists-via-REST-API/m-p/470327#U470327" discussion_style_icon_css="lia-mention-container-editor-message lia-img-icon-forum-thread lia-fa-icon lia-fa-forum lia-fa-thread lia-fa"&gt;&lt;/LI-MESSAGE&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Would it be possible to get an endpoint for visuals? ie.&lt;/P&gt;&lt;P&gt;/reports/&amp;lt;reportId&amp;gt;/visuals&lt;/P&gt;&lt;P&gt;or&amp;nbsp;&lt;/P&gt;&lt;P&gt;/reports/&amp;lt;reportId&amp;gt;/pages/&amp;lt;pageName&amp;gt;/visuals&lt;/P&gt;</description>
      <pubDate>Wed, 13 Apr 2022 20:21:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/PBIE-Report-Visuals-API-Endpoint/m-p/2455843#M35528</guid>
      <dc:creator>KieranNZ</dc:creator>
      <dc:date>2022-04-13T20:21:00Z</dc:date>
    </item>
    <item>
      <title>Re: PBIE Report Visuals API Endpoint</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/PBIE-Report-Visuals-API-Endpoint/m-p/2460987#M35577</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/378727"&gt;@KieranNZ&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Please review the following links and check whether they are what you want. Hope they can help you resolve the problem...&lt;/P&gt;
&lt;P&gt;&lt;A href="https://docs.microsoft.com/en-us/javascript/api/overview/powerbi/get-visuals" target="_self"&gt;Get pages and visuals&lt;/A&gt;&lt;/P&gt;
&lt;TABLE border="1" width="100%"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="100%"&gt;&lt;EM&gt;&lt;STRONG&gt;let pages = await page.getVisuals();&lt;/STRONG&gt;&lt;/EM&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&lt;A href="https://blog.crossjoin.co.uk/2022/01/16/getting-the-ids-of-all-visuals-in-a-power-bi-report-page-using-the-power-bi-embedded-analytics-playground/" target="_self"&gt;Getting The IDs Of All Visuals In A Power BI Report Page Using The Power BI Embedded Analytics Playground&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="yingyinr_0-1650264099965.gif" style="width: 999px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/700964i25EC8AFE835FA9BF/image-size/large?v=v2&amp;amp;px=999" role="button" title="yingyinr_0-1650264099965.gif" alt="yingyinr_0-1650264099965.gif" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://stackoverflow.com/questions/63144582/get-visuals-from-power-bi-report-through-api-call" target="_self"&gt;Get visuals from Power BI report through API Call&lt;/A&gt;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;You cannot get them with the REST API but you can with the Javascript API&lt;/P&gt;
&lt;P&gt;If you did the following to embed your report&lt;/P&gt;
&lt;PRE class=""&gt;&lt;CODE class=""&gt;&lt;SPAN class=""&gt;var report = powerbi.&lt;SPAN class=""&gt;embed(reportContainer, config);&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;You could then do the following PowerBI Javascript API call to get all of the visuals on the first page of the embedded report and store them in a&lt;SPAN&gt;&amp;nbsp;&lt;EM&gt;MyReportVisuals&lt;SPAN&gt;&amp;nbsp;variable to do whatever you want with.&lt;/SPAN&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE class=""&gt;&lt;CODE class=""&gt;report.&lt;SPAN class=""&gt;getPages().&lt;SPAN class=""&gt;then(&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;pages =&amp;gt; {
            pages[&lt;SPAN class=""&gt;0].&lt;SPAN class=""&gt;getVisuals().&lt;SPAN class=""&gt;then(&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;visuals =&amp;gt; &lt;SPAN class=""&gt;MyReportVisuals = visuals)
        });&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Best Regards&lt;/P&gt;</description>
      <pubDate>Mon, 18 Apr 2022 07:05:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/PBIE-Report-Visuals-API-Endpoint/m-p/2460987#M35577</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-04-18T07:05:58Z</dc:date>
    </item>
    <item>
      <title>Re: PBIE Report Visuals API Endpoint</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/PBIE-Report-Visuals-API-Endpoint/m-p/2460994#M35578</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp; We dont have direct rest api end point for report visuals.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ref -&amp;nbsp;&lt;A href="https://docs.microsoft.com/en-us/javascript/api/overview/powerbi/embed-visual" target="_blank"&gt;https://docs.microsoft.com/en-us/javascript/api/overview/powerbi/embed-visual&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Refer this to get the visual id -&amp;nbsp;&lt;A href="https://dataap.org/blog/2022/03/10/export-power-bi-report-visual-as-a-image-rest-api-automated-way/" target="_blank"&gt;https://dataap.org/blog/2022/03/10/export-power-bi-report-visual-as-a-image-rest-api-automated-way/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Hari&lt;/P&gt;</description>
      <pubDate>Mon, 18 Apr 2022 07:10:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/PBIE-Report-Visuals-API-Endpoint/m-p/2460994#M35578</guid>
      <dc:creator>Hariharan_R</dc:creator>
      <dc:date>2022-04-18T07:10:23Z</dc:date>
    </item>
  </channel>
</rss>

