<?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 PowerBI embedded - download .pbix file programatically in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/PowerBI-embedded-download-pbix-file-programatically/m-p/155244#M5251</link>
    <description>&lt;P&gt;I am developing a client side webpart using PowerBI embedded feature using a Power BI Free Account. PowerBi embedded feature requires PBIX file to be uploaded in Microsoft Azure workspace.&lt;BR /&gt;When I schedule a data refresh for my dataset, the report gets refresh but the PBIX generated of particular dataset doesn't gets updated.&lt;BR /&gt;In order to display the refreshed data in my client side webpart, an updated PBIX file needs to be replaced with the older version of PBIX.&lt;BR /&gt;I am able to manually download PBIX file from PowerBI Service (&lt;A href="https://app.powerbi.com/" target="_blank"&gt;https://app.powerbi.com/&lt;/A&gt;) using "Download Report (download a pbix copy)" from file menu and also able to import the PBIX file to Azure workspace.&lt;/P&gt;&lt;P&gt;But my issue is below:&lt;BR /&gt;1. How to programatically download PBIX file.&lt;BR /&gt;2. Is there any API published by Microsoft to export file from the PowerBI desktop.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Once we get the PBIX file programatically, we have the PowerBI-cli apis to import the PBIX to workspace.&lt;/P&gt;</description>
    <pubDate>Fri, 07 Apr 2017 04:24:18 GMT</pubDate>
    <dc:creator>svenaik</dc:creator>
    <dc:date>2017-04-07T04:24:18Z</dc:date>
    <item>
      <title>PowerBI embedded - download .pbix file programatically</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/PowerBI-embedded-download-pbix-file-programatically/m-p/155244#M5251</link>
      <description>&lt;P&gt;I am developing a client side webpart using PowerBI embedded feature using a Power BI Free Account. PowerBi embedded feature requires PBIX file to be uploaded in Microsoft Azure workspace.&lt;BR /&gt;When I schedule a data refresh for my dataset, the report gets refresh but the PBIX generated of particular dataset doesn't gets updated.&lt;BR /&gt;In order to display the refreshed data in my client side webpart, an updated PBIX file needs to be replaced with the older version of PBIX.&lt;BR /&gt;I am able to manually download PBIX file from PowerBI Service (&lt;A href="https://app.powerbi.com/" target="_blank"&gt;https://app.powerbi.com/&lt;/A&gt;) using "Download Report (download a pbix copy)" from file menu and also able to import the PBIX file to Azure workspace.&lt;/P&gt;&lt;P&gt;But my issue is below:&lt;BR /&gt;1. How to programatically download PBIX file.&lt;BR /&gt;2. Is there any API published by Microsoft to export file from the PowerBI desktop.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Once we get the PBIX file programatically, we have the PowerBI-cli apis to import the PBIX to workspace.&lt;/P&gt;</description>
      <pubDate>Fri, 07 Apr 2017 04:24:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/PowerBI-embedded-download-pbix-file-programatically/m-p/155244#M5251</guid>
      <dc:creator>svenaik</dc:creator>
      <dc:date>2017-04-07T04:24:18Z</dc:date>
    </item>
    <item>
      <title>PowerBI embedded - download .pbix file programatically</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/PowerBI-embedded-download-pbix-file-programatically/m-p/155490#M5288</link>
      <description>&lt;P&gt;I am developing a client side webpart using PowerBI embedded feature using a Power BI Free Account. PowerBi embedded feature requires PBIX file to be uploaded in Microsoft Azure workspace.&lt;BR /&gt;When I schedule a data refresh for my dataset, the report gets refresh but the PBIX generated of particular dataset doesn't gets updated.&lt;BR /&gt;In order to display the refreshed data in my client side webpart, an updated PBIX file needs to be replaced with the older version of PBIX.&lt;BR /&gt;I am able to manually download PBIX file from PowerBI Service (&lt;A title="" href="https://app.powerbi.com/" target="_blank" rel="nofollow noopener noreferrer"&gt;https://app.powerbi.com/&lt;/A&gt;) using "Download Report (download a pbix copy)" from file menu and also able to import the PBIX file to Azure workspace.&lt;/P&gt;&lt;P&gt;But my issue is below:&lt;BR /&gt;1. How to programatically download PBIX file.&lt;BR /&gt;2. Is there any API published by Microsoft to export file from the PowerBI desktop.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Once we get the PBIX file programatically, we have the PowerBI-cli apis to import the PBIX to workspace.&lt;/P&gt;</description>
      <pubDate>Fri, 07 Apr 2017 11:30:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/PowerBI-embedded-download-pbix-file-programatically/m-p/155490#M5288</guid>
      <dc:creator>svenaik</dc:creator>
      <dc:date>2017-04-07T11:30:52Z</dc:date>
    </item>
    <item>
      <title>Re: PowerBI embedded - download .pbix file programatically</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/PowerBI-embedded-download-pbix-file-programatically/m-p/155850#M5272</link>
      <description>&lt;P&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/26208"&gt;@svenaik&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There's no official API to download the pbix file. You can submit your idea at &lt;A href="http://ideas.powerbi.com" target="_self"&gt;Power BI Ideas&lt;/A&gt; and vote it up.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I also did some research, however I found it is a dead end. When downloading a pbix file, a GET request as below is actually called. I can re-do the GET request with the Bearer token in an API console like &lt;A href="https://chrome.google.com/webstore/detail/postman/fhbjgbiflinjbdggehcddcbncdddomop?hl=en" target="_self"&gt;POSTMAN&lt;/A&gt;&amp;nbsp;to download the pbix file, but the token would expire in one hour and a token &lt;A href="https://powerbi.microsoft.com/en-us/documentation/powerbi-developer-integrate-tile/" target="_self"&gt;generated from here&lt;/A&gt; can't access that request(401 error).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 600px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/36529iCB92FC5B7AAFB969/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 08 Apr 2017 06:32:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/PowerBI-embedded-download-pbix-file-programatically/m-p/155850#M5272</guid>
      <dc:creator>Eric_Zhang</dc:creator>
      <dc:date>2017-04-08T06:32:28Z</dc:date>
    </item>
    <item>
      <title>Re: PowerBI embedded - download .pbix file programatically</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/PowerBI-embedded-download-pbix-file-programatically/m-p/183443#M5882</link>
      <description>&lt;P&gt;There is a PowerBI-CLI =]&lt;BR /&gt;&lt;A href="https://github.com/Microsoft/PowerBI-Cli&amp;nbsp;" target="_blank"&gt;https://github.com/Microsoft/PowerBI-Cli&amp;nbsp;&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Hugs!&lt;/P&gt;</description>
      <pubDate>Sat, 27 May 2017 15:42:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/PowerBI-embedded-download-pbix-file-programatically/m-p/183443#M5882</guid>
      <dc:creator>RobSegoa</dc:creator>
      <dc:date>2017-05-27T15:42:29Z</dc:date>
    </item>
    <item>
      <title>Re: PowerBI embedded - download .pbix file programatically</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/PowerBI-embedded-download-pbix-file-programatically/m-p/208167#M6578</link>
      <description>&lt;P&gt;svenaik, did you get a solution? i have the same problem.&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jul 2017 19:55:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/PowerBI-embedded-download-pbix-file-programatically/m-p/208167#M6578</guid>
      <dc:creator>lglima</dc:creator>
      <dc:date>2017-07-07T19:55:50Z</dc:date>
    </item>
  </channel>
</rss>

