<?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: PowerBI API ExportTo individual page/visual in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/PowerBI-API-ExportTo-individual-page-visual/m-p/2247044#M33550</link>
    <description>&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your reply! I used the Get Pages API Endpoint and I noticed that it gave both a "Name" and a "Display Name", just like you mentioned. I tried running the same code using the GUID-like given to me by the API, but I still get all of the pages in the report.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could I be missing something in the payload that makes the API ignore it?&lt;/P&gt;</description>
    <pubDate>Mon, 20 Dec 2021 08:12:43 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2021-12-20T08:12:43Z</dc:date>
    <item>
      <title>PowerBI API ExportTo individual page/visual</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/PowerBI-API-ExportTo-individual-page-visual/m-p/2239754#M33455</link>
      <description>&lt;P&gt;Hello.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to use the PowerBI API to export a specific page of a report as a PNG. The functionality works, giving me a zip file containing a PNG file for every page in the report.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My issue comes when I'm trying to select a specific visual or page by modifying the payload. Following the documentation, this is how my payload looks like&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;{
    'format': 'PNG',
    'powerBIReportConfiguration': {
        'settings': {
            'locale': 'en-US',
            'excludeHiddenPages': 'true'
        },
        'pages': [
            {
                'pageName': 'Test report page',
            }
        ]
    }&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But I am still getting a zip file with all the pages instead of just the selected one. Same thing happens when selecting a specific visual.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Dec 2021 08:10:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/PowerBI-API-ExportTo-individual-page-visual/m-p/2239754#M33455</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-12-15T08:10:58Z</dc:date>
    </item>
    <item>
      <title>Re: PowerBI API ExportTo individual page/visual</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/PowerBI-API-ExportTo-individual-page-visual/m-p/2246432#M33534</link>
      <description>&lt;P&gt;The pagename is likely not what you think it is. It is more of a GUID based identifier. If you don't specify the right pagename the export will ignore your request and give you all pages.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Unfortunately the main documentation&amp;nbsp;&lt;A href="https://docs.microsoft.com/en-us/rest/api/power-bi/reports/export-to-file-in-group#exportreportpage" target="_blank"&gt;Reports - Export To File In Group - REST API (Power BI Power BI REST APIs) | Microsoft Docs&lt;/A&gt;&amp;nbsp;is not very helpful. However, there's this :&amp;nbsp;&lt;A href="https://docs.microsoft.com/en-us/power-bi/developer/embedded/export-to" target="_blank"&gt;Export Power BI embedded analytics reports API - Power BI | Microsoft Docs&lt;/A&gt;&amp;nbsp; which gives you the hint on how to fetch the page names via a different API call.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Dec 2021 01:07:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/PowerBI-API-ExportTo-individual-page-visual/m-p/2246432#M33534</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2021-12-20T01:07:47Z</dc:date>
    </item>
    <item>
      <title>Re: PowerBI API ExportTo individual page/visual</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/PowerBI-API-ExportTo-individual-page-visual/m-p/2247044#M33550</link>
      <description>&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your reply! I used the Get Pages API Endpoint and I noticed that it gave both a "Name" and a "Display Name", just like you mentioned. I tried running the same code using the GUID-like given to me by the API, but I still get all of the pages in the report.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could I be missing something in the payload that makes the API ignore it?&lt;/P&gt;</description>
      <pubDate>Mon, 20 Dec 2021 08:12:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/PowerBI-API-ExportTo-individual-page-visual/m-p/2247044#M33550</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-12-20T08:12:43Z</dc:date>
    </item>
    <item>
      <title>Re: PowerBI API ExportTo individual page/visual</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/PowerBI-API-ExportTo-individual-page-visual/m-p/2247530#M33555</link>
      <description>&lt;P&gt;You can use the sandbox to try the API call in the service. That helps with the debugging.&lt;/P&gt;</description>
      <pubDate>Mon, 20 Dec 2021 11:52:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/PowerBI-API-ExportTo-individual-page-visual/m-p/2247530#M33555</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2021-12-20T11:52:39Z</dc:date>
    </item>
    <item>
      <title>Re: PowerBI API ExportTo individual page/visual</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/PowerBI-API-ExportTo-individual-page-visual/m-p/2247632#M33557</link>
      <description>&lt;P&gt;So I have found the issue by pure luck. I was using Python's requests package to send the requests, and the payload was written as a Python dictionary and given to the package, since that work usually.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Apparently, this endpoint does not like that and I had to write it as a JSON string and pass it like that.&lt;/P&gt;</description>
      <pubDate>Mon, 20 Dec 2021 12:56:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/PowerBI-API-ExportTo-individual-page-visual/m-p/2247632#M33557</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-12-20T12:56:43Z</dc:date>
    </item>
    <item>
      <title>Re: PowerBI API ExportTo individual page/visual</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/PowerBI-API-ExportTo-individual-page-visual/m-p/3956271#M52918</link>
      <description>&lt;P&gt;can you share the payload for the report configuration to isolate just a single visual? I am working on the same use case. Thank you&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2024 02:20:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/PowerBI-API-ExportTo-individual-page-visual/m-p/3956271#M52918</guid>
      <dc:creator>jbronzo</dc:creator>
      <dc:date>2024-05-29T02:20:16Z</dc:date>
    </item>
  </channel>
</rss>

