<?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 Export Embedded Report to API that will export the binary stream in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Export-Embedded-Report-to-API-that-will-export-the-binary-stream/m-p/4682139#M61032</link>
    <description>&lt;P&gt;We would like to setup an email export of power bi embedded but use your application to do it.&amp;nbsp; Can someone tell me if we can use these api's to export the binary stream of the report?&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://learn.microsoft.com/en-us/rest/api/power-bi/reports/export-to-file#fileformat" target="_blank"&gt;Reports - Export To File - REST API (Power BI Power BI REST APIs) | Microsoft Learn&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 06 May 2025 14:58:28 GMT</pubDate>
    <dc:creator>Don-Bot</dc:creator>
    <dc:date>2025-05-06T14:58:28Z</dc:date>
    <item>
      <title>Export Embedded Report to API that will export the binary stream</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Export-Embedded-Report-to-API-that-will-export-the-binary-stream/m-p/4682139#M61032</link>
      <description>&lt;P&gt;We would like to setup an email export of power bi embedded but use your application to do it.&amp;nbsp; Can someone tell me if we can use these api's to export the binary stream of the report?&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://learn.microsoft.com/en-us/rest/api/power-bi/reports/export-to-file#fileformat" target="_blank"&gt;Reports - Export To File - REST API (Power BI Power BI REST APIs) | Microsoft Learn&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 06 May 2025 14:58:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Export-Embedded-Report-to-API-that-will-export-the-binary-stream/m-p/4682139#M61032</guid>
      <dc:creator>Don-Bot</dc:creator>
      <dc:date>2025-05-06T14:58:28Z</dc:date>
    </item>
    <item>
      <title>Re: Export Embedded Report to API that will export the binary stream</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Export-Embedded-Report-to-API-that-will-export-the-binary-stream/m-p/4682548#M61038</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/595369"&gt;@Don-Bot&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;Thanks for asking the question in Microsoft Fabric Community,&lt;/P&gt;
&lt;P&gt;Yes, you can use the Power BI REST API,&amp;nbsp;specifically the&amp;nbsp;Export To File&amp;nbsp;endpoint to export an embedded report as a binary stream (such as PDF, PPTX, or PNG). This allows your application to generate the report file programmatically and then use that file stream for purposes like sending via email.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To achieve this, you can follow these steps:&lt;/P&gt;
&lt;P&gt;1. Call the&amp;nbsp;Export To File&amp;nbsp;API with the report ID and desired export format.&lt;/P&gt;
&lt;P&gt;2. Use the&amp;nbsp;Get Export To File Status&amp;nbsp;API to poll until the export job completes.&lt;/P&gt;
&lt;P&gt;3. Once completed, the API provides a download URL where you can fetch the file (binary stream).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Requirements:&lt;/P&gt;
&lt;UL class="lia-list-style-type-circle"&gt;
&lt;LI&gt;The workspace must be hosted in a Premium (P), Embedded (A SKU), or Fabric capacity.&lt;/LI&gt;
&lt;LI&gt;API authentication must be done using a service principal or master user with access to the report.&lt;/LI&gt;
&lt;LI&gt;The download URL returned by the API is valid for 24 hours.&lt;/LI&gt;
&lt;LI&gt;Exporting to PNG will return a ZIP file containing one image per page.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Here’s the official documentation for reference:&lt;BR /&gt;&lt;A href="https://learn.microsoft.com/en-us/power-bi/developer/embedded/export-to" target="_blank"&gt;Export Power BI embedded analytics reports API - Power BI | Microsoft Learn&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://learn.microsoft.com/en-us/rest/api/power-bi/reports/export-to-file" target="_blank"&gt;Reports - Export To File - REST API (Power BI Power BI REST APIs) | Microsoft Learn&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps. Please reach out for further assistance.&lt;BR /&gt;If this post helps, then please consider&amp;nbsp;to Accept as the solution to help the other members find it more quickly and a kudos would be appreciated.&lt;/P&gt;
&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Wed, 07 May 2025 05:06:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Export-Embedded-Report-to-API-that-will-export-the-binary-stream/m-p/4682548#M61038</guid>
      <dc:creator>v-veshwara-msft</dc:creator>
      <dc:date>2025-05-07T05:06:56Z</dc:date>
    </item>
  </channel>
</rss>

