<?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 - REST API - Export and then Import in Flow / Power Automate in Service</title>
    <link>https://community.fabric.microsoft.com/t5/Service/PowerBI-REST-API-Export-and-then-Import-in-Flow-Power-Automate/m-p/1055175#M94271</link>
    <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've been banging my head against a brick wall for a while here.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've followed a number of the guides for connecting to PowerBI REST APIs using a custom connector in Flow, and generally have it working well...I'm now succesfully using flows to update parameters, refresh datasets etc.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Where I have failed is trying to duplicate a report and dataset, by exporting and importing.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm using the swagger posted here:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/microsoft/PowerBI-CSharp/blob/master/sdk/swaggers/swagger.json" target="_blank" rel="noopener"&gt;https://github.com/microsoft/PowerBI-CSharp/blob/master/sdk/swaggers/swagger.json&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/microsoft/PowerBI-CSharp/blob/master/sdk/swaggers/swagger.json" target="_blank" rel="noopener"&gt;&amp;nbsp;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/microsoft/PowerBI-CSharp/blob/master/sdk/swaggers/swagger.json" target="_blank" rel="noopener"&gt;Flow currently looks like this:&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/microsoft/PowerBI-CSharp/blob/master/sdk/swaggers/swagger.json" target="_blank" rel="noopener"&gt;&amp;nbsp;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/microsoft/PowerBI-CSharp/blob/master/sdk/swaggers/swagger.json" target="_blank" rel="noopener"&gt;&lt;img /&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Export is using this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.microsoft.com/en-us/rest/api/power-bi/reports/exportreportingroup" target="_blank" rel="noopener"&gt;https://docs.microsoft.com/en-us/rest/api/power-bi/reports/exportreportingroup&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is succesful and if I put the body of this into a compose, it gives me a zip file, which when downloaded and renamed to .pbix, opens properly. The raw output of that action is:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;{"statusCode":200,"headers":{"Pragma":"no-cache","Transfer-Encoding":"chunked","X-PowerBI-FileName":"Test File.pbix","Strict-Transport-Security":"max-age=31536000; includeSubDomains,max-age=31536000; includeSubDomains","X-Frame-Options":"deny,deny","X-Content-Type-Options":"nosniff,nosniff","RequestId":"[ID]","Access-Control-Expose-Headers":"RequestId","request-redirected":"true","home-cluster-uri":"https://wabi-uk-south-redirect.analysis.windows.net/","Cache-Control":"no-store, must-revalidate, no-cache","Date":"Wed, 29 Apr 2020 03:27:50 GMT","Content-Type":"application/zip","Content-Length":"1839288"},"body":{"$content-type":"application/zip","$content":"UEsDBBQAAAAIAHg[...rest of the content]"}}&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;I'm then trying to take the body of that and use it with the POST import to group function:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.microsoft.com/en-us/rest/api/power-bi/imports/postimportingroup" target="_blank" rel="noopener"&gt;https://docs.microsoft.com/en-us/rest/api/power-bi/imports/postimportingroup&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&lt;A href="https://docs.microsoft.com/en-us/rest/api/power-bi/imports/postimportingroup" target="_blank" rel="noopener"&gt;&amp;nbsp;&lt;/A&gt;&lt;P&gt;I'm getting this error withn a 400 status code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;{
  "Strict-Transport-Security": "max-age=31536000; includeSubDomains",
  "X-Frame-Options": "deny",
  "X-Content-Type-Options": "nosniff",
  "Access-Control-Expose-Headers": "RequestId",
  "request-redirected": "true",
  "home-cluster-uri": "https://wabi-uk-south-redirect.analysis.windows.net/",
  "RequestId": "d248b4cd-7093-4322-893d-ff971cff3b0f",
  "Date": "Wed, 29 Apr 2020 03:01:46 GMT",
  "Content-Length": "0"
}&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;If i click the "input" of that action, it shows as:&lt;/P&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;LI-CODE lang="javascript"&gt;{"host":{"apiId":"subscriptions/[code removed]/providers/Microsoft.Web/locations/uksouth/runtimes/uk-001/apis/pbi-20connector-[code removed]","connectionReferenceName":"shared_pbi-20connector-[code removed]","operationId":"Imports_PostImportInGroup"},"parameters":{"groupId":"[code removed]","datasetDisplayName":"TestCopy.pbix","importInfo":{"$content-type":"application/zip","$content":"UEsDBBQAAAA[...rest of content]"},"nameConflict":"Abort"}}&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;Any ideas what I'm doing wrong?&amp;nbsp; Has anyone succesfully managed to do this that could point me in the right direction?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Tom.&lt;/P&gt;</description>
    <pubDate>Thu, 30 Apr 2020 09:12:09 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2020-04-30T09:12:09Z</dc:date>
    <item>
      <title>PowerBI - REST API - Export and then Import in Flow / Power Automate</title>
      <link>https://community.fabric.microsoft.com/t5/Service/PowerBI-REST-API-Export-and-then-Import-in-Flow-Power-Automate/m-p/1055175#M94271</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've been banging my head against a brick wall for a while here.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've followed a number of the guides for connecting to PowerBI REST APIs using a custom connector in Flow, and generally have it working well...I'm now succesfully using flows to update parameters, refresh datasets etc.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Where I have failed is trying to duplicate a report and dataset, by exporting and importing.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm using the swagger posted here:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/microsoft/PowerBI-CSharp/blob/master/sdk/swaggers/swagger.json" target="_blank" rel="noopener"&gt;https://github.com/microsoft/PowerBI-CSharp/blob/master/sdk/swaggers/swagger.json&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/microsoft/PowerBI-CSharp/blob/master/sdk/swaggers/swagger.json" target="_blank" rel="noopener"&gt;&amp;nbsp;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/microsoft/PowerBI-CSharp/blob/master/sdk/swaggers/swagger.json" target="_blank" rel="noopener"&gt;Flow currently looks like this:&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/microsoft/PowerBI-CSharp/blob/master/sdk/swaggers/swagger.json" target="_blank" rel="noopener"&gt;&amp;nbsp;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/microsoft/PowerBI-CSharp/blob/master/sdk/swaggers/swagger.json" target="_blank" rel="noopener"&gt;&lt;img /&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Export is using this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.microsoft.com/en-us/rest/api/power-bi/reports/exportreportingroup" target="_blank" rel="noopener"&gt;https://docs.microsoft.com/en-us/rest/api/power-bi/reports/exportreportingroup&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is succesful and if I put the body of this into a compose, it gives me a zip file, which when downloaded and renamed to .pbix, opens properly. The raw output of that action is:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;{"statusCode":200,"headers":{"Pragma":"no-cache","Transfer-Encoding":"chunked","X-PowerBI-FileName":"Test File.pbix","Strict-Transport-Security":"max-age=31536000; includeSubDomains,max-age=31536000; includeSubDomains","X-Frame-Options":"deny,deny","X-Content-Type-Options":"nosniff,nosniff","RequestId":"[ID]","Access-Control-Expose-Headers":"RequestId","request-redirected":"true","home-cluster-uri":"https://wabi-uk-south-redirect.analysis.windows.net/","Cache-Control":"no-store, must-revalidate, no-cache","Date":"Wed, 29 Apr 2020 03:27:50 GMT","Content-Type":"application/zip","Content-Length":"1839288"},"body":{"$content-type":"application/zip","$content":"UEsDBBQAAAAIAHg[...rest of the content]"}}&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;I'm then trying to take the body of that and use it with the POST import to group function:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.microsoft.com/en-us/rest/api/power-bi/imports/postimportingroup" target="_blank" rel="noopener"&gt;https://docs.microsoft.com/en-us/rest/api/power-bi/imports/postimportingroup&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&lt;A href="https://docs.microsoft.com/en-us/rest/api/power-bi/imports/postimportingroup" target="_blank" rel="noopener"&gt;&amp;nbsp;&lt;/A&gt;&lt;P&gt;I'm getting this error withn a 400 status code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;{
  "Strict-Transport-Security": "max-age=31536000; includeSubDomains",
  "X-Frame-Options": "deny",
  "X-Content-Type-Options": "nosniff",
  "Access-Control-Expose-Headers": "RequestId",
  "request-redirected": "true",
  "home-cluster-uri": "https://wabi-uk-south-redirect.analysis.windows.net/",
  "RequestId": "d248b4cd-7093-4322-893d-ff971cff3b0f",
  "Date": "Wed, 29 Apr 2020 03:01:46 GMT",
  "Content-Length": "0"
}&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;If i click the "input" of that action, it shows as:&lt;/P&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;LI-CODE lang="javascript"&gt;{"host":{"apiId":"subscriptions/[code removed]/providers/Microsoft.Web/locations/uksouth/runtimes/uk-001/apis/pbi-20connector-[code removed]","connectionReferenceName":"shared_pbi-20connector-[code removed]","operationId":"Imports_PostImportInGroup"},"parameters":{"groupId":"[code removed]","datasetDisplayName":"TestCopy.pbix","importInfo":{"$content-type":"application/zip","$content":"UEsDBBQAAAA[...rest of content]"},"nameConflict":"Abort"}}&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;Any ideas what I'm doing wrong?&amp;nbsp; Has anyone succesfully managed to do this that could point me in the right direction?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Tom.&lt;/P&gt;</description>
      <pubDate>Thu, 30 Apr 2020 09:12:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Service/PowerBI-REST-API-Export-and-then-Import-in-Flow-Power-Automate/m-p/1055175#M94271</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-04-30T09:12:09Z</dc:date>
    </item>
    <item>
      <title>Re: PowerBI - REST API - Export and then Import in Flow / Power Automate</title>
      <link>https://community.fabric.microsoft.com/t5/Service/PowerBI-REST-API-Export-and-then-Import-in-Flow-Power-Automate/m-p/1056712#M94369</link>
      <description>&lt;P&gt;Any ideas at all? Spent some more time looking at this and still getting nowhere!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;</description>
      <pubDate>Wed, 29 Apr 2020 14:13:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Service/PowerBI-REST-API-Export-and-then-Import-in-Flow-Power-Automate/m-p/1056712#M94369</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-04-29T14:13:19Z</dc:date>
    </item>
    <item>
      <title>Re: PowerBI - REST API - Export and then Import in Flow / Power Automate</title>
      <link>https://community.fabric.microsoft.com/t5/Service/PowerBI-REST-API-Export-and-then-Import-in-Flow-Power-Automate/m-p/1057728#M94420</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;I found the very useful blogs yesterday. Maybe they also can help you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please reference:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://blog.crossjoin.co.uk/category/power-bi-api/" target="_self"&gt;Calling The Power BI Export API From Power Automate, Part 1: Creating A Custom Connector&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://blog.crossjoin.co.uk/category/power-bi-api/" target="_self"&gt;Calling The Power BI Export API From Power Automate, Part 2: Creating A Flow That Exports A Paginated Report To A CSV File&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Apr 2020 01:50:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Service/PowerBI-REST-API-Export-and-then-Import-in-Flow-Power-Automate/m-p/1057728#M94420</guid>
      <dc:creator>v-xuding-msft</dc:creator>
      <dc:date>2020-04-30T01:50:43Z</dc:date>
    </item>
    <item>
      <title>Re: PowerBI - REST API - Export and then Import in Flow / Power Automate</title>
      <link>https://community.fabric.microsoft.com/t5/Service/PowerBI-REST-API-Export-and-then-Import-in-Flow-Power-Automate/m-p/1058670#M94475</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="141007" data-lia-user-login="v-xuding-msft" class="lia-mention lia-mention-user"&gt;v-xuding-msft&lt;/a&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;These are indeed very helpful, and I've spent a lot of time looking at these to get me as far as I have, but do not help with my specific issue.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Pretty much the only thing I think I am missing, is what do I need to do with the output of the export step, before injecting it into the import step. It's probably as simple as a compose with some text to define something, but I just cannot figure it out.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Tom.&lt;/P&gt;</description>
      <pubDate>Thu, 30 Apr 2020 08:48:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Service/PowerBI-REST-API-Export-and-then-Import-in-Flow-Power-Automate/m-p/1058670#M94475</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-04-30T08:48:44Z</dc:date>
    </item>
    <item>
      <title>Re: PowerBI - REST API - Export and then Import in Flow / Power Automate</title>
      <link>https://community.fabric.microsoft.com/t5/Service/PowerBI-REST-API-Export-and-then-Import-in-Flow-Power-Automate/m-p/1059113#M94492</link>
      <description>&lt;P&gt;Does your import step work with a pbix file that you haven't just exported, ie one that you've built yourself in Power BI Desktop?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The only other thing I can suggest is to look at this example of how to call the export/import endpoints in PowerShell, which might highlight something that you're doing wrong:&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/Azure-Samples/powerbi-powershell/blob/master/copyWorkspace.ps1" target="_blank"&gt;https://github.com/Azure-Samples/powerbi-powershell/blob/master/copyWorkspace.ps1&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;HTH,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;</description>
      <pubDate>Thu, 30 Apr 2020 12:08:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Service/PowerBI-REST-API-Export-and-then-Import-in-Flow-Power-Automate/m-p/1059113#M94492</guid>
      <dc:creator>cwebb</dc:creator>
      <dc:date>2020-04-30T12:08:05Z</dc:date>
    </item>
    <item>
      <title>Re: PowerBI - REST API - Export and then Import in Flow / Power Automate</title>
      <link>https://community.fabric.microsoft.com/t5/Service/PowerBI-REST-API-Export-and-then-Import-in-Flow-Power-Automate/m-p/1059867#M94532</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="79" data-lia-user-login="cwebb" class="lia-mention lia-mention-user"&gt;cwebb&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for looking at this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have indeed tried manually too, still failing. From looking at the powershell it looks like the bit that I'm missing is the conversion to the multipart form data:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;$packageFileStream = New-Object System.IO.FileStream @($temp_path, [System.IO.FileMode]::Open)
        
	    $contentDispositionHeaderValue = New-Object System.Net.Http.Headers.ContentDispositionHeaderValue "form-data"
	    $contentDispositionHeaderValue.Name = "file0"
	    $contentDispositionHeaderValue.FileName = $file_name
 
        $streamContent = New-Object System.Net.Http.StreamContent $packageFileStream
        $streamContent.Headers.ContentDisposition = $contentDispositionHeaderValue
        
        $content = New-Object System.Net.Http.MultipartFormDataContent
        $content.Add($streamContent)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any ideas how to do that in Flow?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Tom.&lt;/P&gt;</description>
      <pubDate>Thu, 30 Apr 2020 18:26:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Service/PowerBI-REST-API-Export-and-then-Import-in-Flow-Power-Automate/m-p/1059867#M94532</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-04-30T18:26:50Z</dc:date>
    </item>
    <item>
      <title>Re: PowerBI - REST API - Export and then Import in Flow / Power Automate</title>
      <link>https://community.fabric.microsoft.com/t5/Service/PowerBI-REST-API-Export-and-then-Import-in-Flow-Power-Automate/m-p/1171157#M99946</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;i found the solution.&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;To import a file, request Headers should include&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Content-Type: multipart/form-data&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;with the file&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://www.w3.org/TR/html401/interact/forms.html" data-linktype="external" target="_blank"&gt;encoded as form data&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;in the request body.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;{
  "$content-type": "multipart/form-data",
  "$multipart": [
    {
      "body": @{body('Export_PBIX')}
    }
  ]
}&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 19 Jun 2020 10:53:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Service/PowerBI-REST-API-Export-and-then-Import-in-Flow-Power-Automate/m-p/1171157#M99946</guid>
      <dc:creator>mwegener</dc:creator>
      <dc:date>2020-06-19T10:53:44Z</dc:date>
    </item>
    <item>
      <title>Re: PowerBI - REST API - Export and then Import in Flow / Power Automate</title>
      <link>https://community.fabric.microsoft.com/t5/Service/PowerBI-REST-API-Export-and-then-Import-in-Flow-Power-Automate/m-p/1316185#M106499</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="93408" data-lia-user-login="mwegener" class="lia-mention lia-mention-user"&gt;mwegener&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This looks perfect, thank you. however, my connector is different to yours and isn't working, is there any chance you could share the details of your connector?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Sat, 22 Aug 2020 09:58:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Service/PowerBI-REST-API-Export-and-then-Import-in-Flow-Power-Automate/m-p/1316185#M106499</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-08-22T09:58:16Z</dc:date>
    </item>
    <item>
      <title>Re: PowerBI - REST API - Export and then Import in Flow / Power Automate</title>
      <link>https://community.fabric.microsoft.com/t5/Service/PowerBI-REST-API-Export-and-then-Import-in-Flow-Power-Automate/m-p/1316296#M106504</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I wrote a blog post about it.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.powerbi.com/t5/Power-Platform-Integrations/Archive-Power-BI-Reports-with-Power-Automate/td-p/1207359" target="_blank"&gt;https://community.powerbi.com/t5/Power-Platform-Integrations/Archive-Power-BI-Reports-with-Power-Automate/td-p/1207359&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 22 Aug 2020 12:45:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Service/PowerBI-REST-API-Export-and-then-Import-in-Flow-Power-Automate/m-p/1316296#M106504</guid>
      <dc:creator>mwegener</dc:creator>
      <dc:date>2020-08-22T12:45:25Z</dc:date>
    </item>
  </channel>
</rss>

