<?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>article QRS API call to export and save a Qlik Sense application using Powershell in Official Support Articles</title>
    <link>https://community.qlik.com/t5/Official-Support-Articles/QRS-API-call-to-export-and-save-a-Qlik-Sense-application-using/ta-p/1715062</link>
    <description>&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;This article explains how to &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="feeditemtext cxfeeditemtext"&gt;using QRS API a user can export and save a Qlik Sense application using Powershell.&lt;/SPAN&gt;&lt;/P&gt;
&lt;H4&gt;&lt;SPAN class="feeditemtext cxfeeditemtext"&gt;&lt;BR /&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Environment:&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/H4&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;SPAN class="feeditemtext cxfeeditemtext"&gt;Qlik Sense Enterprise November 2017 and later&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H3&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Resolution:&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/H3&gt;
&lt;P&gt;&lt;BR /&gt;&lt;SPAN&gt;The below script exports the app to the C:\temp folder as test.qvf. Make sure to create the C:\temp folder beforehand&lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE&gt;$hdrs = @{}
$hdrs.Add("X-Qlik-xrfkey","EzFIU5eur2XQBfW7")
$hdrs.Add("X-Qlik-User","UserDirectory=&lt;SPAN&gt;&lt;STRONG&gt;DOMAIN&lt;/STRONG&gt;&lt;/SPAN&gt;;UserId=&lt;SPAN&gt;&lt;STRONG&gt;Administrator&lt;/STRONG&gt;&lt;/SPAN&gt;")
$cert = Get-ChildItem -Path "Cert:\CurrentUser\My" | Where {$_.Subject -like '*QlikClient*'}
$servername = "https://&lt;SPAN&gt;&lt;STRONG&gt;qlikserver2.domain.local&lt;/STRONG&gt;&lt;/SPAN&gt;"

$url = $servername+":4242/qrs/app/3b56d983-b359-4e40-8711-75012814cd70/export/9d8e95a5-9c67-4b6b-8a74-78f3a7bd88e2?xrfkey=EzFIU5eur2XQBfW7"
$output = "C:\temp\test.qvf"
$firstcall=Invoke-RestMethod -UseDefaultCredentials -Uri $url -Method Post -Headers $hdrs -Certificate $cert

$url2= $servername+$firstcall.downloadPath
Invoke-RestMethod -UseDefaultCredentials -Uri $url2 -Method Get -ContentType 'multipart/form-data' -OutFile $output&lt;/PRE&gt;
&lt;P&gt;&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 09 Sep 2021 08:49:22 GMT</pubDate>
    <dc:creator>Sonja_Bauernfeind</dc:creator>
    <dc:date>2021-09-09T08:49:22Z</dc:date>
    <item>
      <title>QRS API call to export and save a Qlik Sense application using Powershell</title>
      <link>https://community.qlik.com/t5/Official-Support-Articles/QRS-API-call-to-export-and-save-a-Qlik-Sense-application-using/ta-p/1715062</link>
      <description>&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;This article explains how to &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="feeditemtext cxfeeditemtext"&gt;using QRS API a user can export and save a Qlik Sense application using Powershell.&lt;/SPAN&gt;&lt;/P&gt;
&lt;H4&gt;&lt;SPAN class="feeditemtext cxfeeditemtext"&gt;&lt;BR /&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Environment:&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/H4&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;SPAN class="feeditemtext cxfeeditemtext"&gt;Qlik Sense Enterprise November 2017 and later&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H3&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Resolution:&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/H3&gt;
&lt;P&gt;&lt;BR /&gt;&lt;SPAN&gt;The below script exports the app to the C:\temp folder as test.qvf. Make sure to create the C:\temp folder beforehand&lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE&gt;$hdrs = @{}
$hdrs.Add("X-Qlik-xrfkey","EzFIU5eur2XQBfW7")
$hdrs.Add("X-Qlik-User","UserDirectory=&lt;SPAN&gt;&lt;STRONG&gt;DOMAIN&lt;/STRONG&gt;&lt;/SPAN&gt;;UserId=&lt;SPAN&gt;&lt;STRONG&gt;Administrator&lt;/STRONG&gt;&lt;/SPAN&gt;")
$cert = Get-ChildItem -Path "Cert:\CurrentUser\My" | Where {$_.Subject -like '*QlikClient*'}
$servername = "https://&lt;SPAN&gt;&lt;STRONG&gt;qlikserver2.domain.local&lt;/STRONG&gt;&lt;/SPAN&gt;"

$url = $servername+":4242/qrs/app/3b56d983-b359-4e40-8711-75012814cd70/export/9d8e95a5-9c67-4b6b-8a74-78f3a7bd88e2?xrfkey=EzFIU5eur2XQBfW7"
$output = "C:\temp\test.qvf"
$firstcall=Invoke-RestMethod -UseDefaultCredentials -Uri $url -Method Post -Headers $hdrs -Certificate $cert

$url2= $servername+$firstcall.downloadPath
Invoke-RestMethod -UseDefaultCredentials -Uri $url2 -Method Get -ContentType 'multipart/form-data' -OutFile $output&lt;/PRE&gt;
&lt;P&gt;&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Sep 2021 08:49:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Official-Support-Articles/QRS-API-call-to-export-and-save-a-Qlik-Sense-application-using/ta-p/1715062</guid>
      <dc:creator>Sonja_Bauernfeind</dc:creator>
      <dc:date>2021-09-09T08:49:22Z</dc:date>
    </item>
  </channel>
</rss>

