<?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 Qlik Sense SaaS: Export an app with the REST API (PowerShell) in Official Support Articles</title>
    <link>https://community.qlik.com/t5/Official-Support-Articles/Qlik-Sense-SaaS-Export-an-app-with-the-REST-API-PowerShell/ta-p/1838718</link>
    <description>&lt;DIV class="lia-message-template-content-zone"&gt;
&lt;P&gt;This is a sample on how to export an app from Qlik Sense SaaS using the REST API.&lt;/P&gt;
&lt;P&gt;The API documentation can be found here:&amp;nbsp;&lt;A href="https://qlik.dev/apis/rest/apps#%23%2Fentries%2Fapps%2F-appId%2Fexport-post" target="_blank" rel="noopener"&gt;https://qlik.dev/apis/rest/apps#%23%2Fentries%2Fapps%2F-appId%2Fexport-post&lt;/A&gt;&lt;/P&gt;
&lt;BLOCKQUOTE class="quote"&gt;The example provided in this article is for demonstration purposes only. Support and modifications cannot be supported. For further assistance, please see our &lt;A href="https://community.qlik.com/t5/integration-extension-apis/bd-p/qlik-sense-integration-extension-api" target="_blank" rel="noopener"&gt;Qlik Sense Integrations and API forum&lt;/A&gt;.&lt;/BLOCKQUOTE&gt;
&lt;P&gt;The below demonstrates how to call the API to export the app and download the file.&lt;/P&gt;
&lt;P&gt;The API call itself will create a temporary file of the exported app that needs to be downloaded with a separate call. The URL to the temporary file is returned in the response header "Location".&lt;/P&gt;
&lt;LI-CODE lang="csharp"&gt;[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12

$tenantname = "https://mytenant.eu.qlikcloud.com"
$apikey ="eyJhbGciOiJ...sxhFexiXQPUdpkNE0Z"
$appid ="8d5919f3-5131-49fe-8a14-5d8d1e8c9b22"

$hdrs = @{}
$hdrs.Add("Authorization","Bearer "+$apikey)
$hdrs.Add("content-type","application/json")
$url = $tenantname+"/api/v1/apps/"+$appid+"/export"
$resp = Invoke-WebRequest -Uri $url -Method Post -Headers $hdrs

$tempFileUrl = $tenantname+$resp.Headers.Location

Invoke-WebRequest -Uri $tempFileUrl -OutFile "C:\temp\exportedfile.qvf" -Headers $hdrs&lt;/LI-CODE&gt;&lt;/DIV&gt;</description>
    <pubDate>Tue, 04 Apr 2023 07:49:22 GMT</pubDate>
    <dc:creator>Damien_V</dc:creator>
    <dc:date>2023-04-04T07:49:22Z</dc:date>
    <item>
      <title>Qlik Sense SaaS: Export an app with the REST API (PowerShell)</title>
      <link>https://community.qlik.com/t5/Official-Support-Articles/Qlik-Sense-SaaS-Export-an-app-with-the-REST-API-PowerShell/ta-p/1838718</link>
      <description>&lt;DIV class="lia-message-template-content-zone"&gt;
&lt;P&gt;This is a sample on how to export an app from Qlik Sense SaaS using the REST API.&lt;/P&gt;
&lt;P&gt;The API documentation can be found here:&amp;nbsp;&lt;A href="https://qlik.dev/apis/rest/apps#%23%2Fentries%2Fapps%2F-appId%2Fexport-post" target="_blank" rel="noopener"&gt;https://qlik.dev/apis/rest/apps#%23%2Fentries%2Fapps%2F-appId%2Fexport-post&lt;/A&gt;&lt;/P&gt;
&lt;BLOCKQUOTE class="quote"&gt;The example provided in this article is for demonstration purposes only. Support and modifications cannot be supported. For further assistance, please see our &lt;A href="https://community.qlik.com/t5/integration-extension-apis/bd-p/qlik-sense-integration-extension-api" target="_blank" rel="noopener"&gt;Qlik Sense Integrations and API forum&lt;/A&gt;.&lt;/BLOCKQUOTE&gt;
&lt;P&gt;The below demonstrates how to call the API to export the app and download the file.&lt;/P&gt;
&lt;P&gt;The API call itself will create a temporary file of the exported app that needs to be downloaded with a separate call. The URL to the temporary file is returned in the response header "Location".&lt;/P&gt;
&lt;LI-CODE lang="csharp"&gt;[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12

$tenantname = "https://mytenant.eu.qlikcloud.com"
$apikey ="eyJhbGciOiJ...sxhFexiXQPUdpkNE0Z"
$appid ="8d5919f3-5131-49fe-8a14-5d8d1e8c9b22"

$hdrs = @{}
$hdrs.Add("Authorization","Bearer "+$apikey)
$hdrs.Add("content-type","application/json")
$url = $tenantname+"/api/v1/apps/"+$appid+"/export"
$resp = Invoke-WebRequest -Uri $url -Method Post -Headers $hdrs

$tempFileUrl = $tenantname+$resp.Headers.Location

Invoke-WebRequest -Uri $tempFileUrl -OutFile "C:\temp\exportedfile.qvf" -Headers $hdrs&lt;/LI-CODE&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 04 Apr 2023 07:49:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Official-Support-Articles/Qlik-Sense-SaaS-Export-an-app-with-the-REST-API-PowerShell/ta-p/1838718</guid>
      <dc:creator>Damien_V</dc:creator>
      <dc:date>2023-04-04T07:49:22Z</dc:date>
    </item>
    <item>
      <title>Re: Qlik Sense SaaS: Export an app with the REST API (PowerShell)</title>
      <link>https://community.qlik.com/t5/Official-Support-Articles/Qlik-Sense-SaaS-Export-an-app-with-the-REST-API-PowerShell/tac-p/2056675#M8842</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;This is very helpful for sharing apps between tenants.&lt;/P&gt;
&lt;P&gt;I'm using Qlik REST connector to activate all QLIK REST APIs and use WITH CONNECTION to run all calls.&lt;BR /&gt;Maybe you can assist with the last step of [-OutFileUrl] on how to implement it using WITH CONNECTION approach in Qlik script.&lt;BR /&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Tue, 04 Apr 2023 07:43:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Official-Support-Articles/Qlik-Sense-SaaS-Export-an-app-with-the-REST-API-PowerShell/tac-p/2056675#M8842</guid>
      <dc:creator>CreoLabs</dc:creator>
      <dc:date>2023-04-04T07:43:14Z</dc:date>
    </item>
    <item>
      <title>Re: Qlik Sense SaaS: Export an app with the REST API (PowerShell)</title>
      <link>https://community.qlik.com/t5/Official-Support-Articles/Qlik-Sense-SaaS-Export-an-app-with-the-REST-API-PowerShell/tac-p/2056681#M8843</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/204415"&gt;@CreoLabs&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I recommend posting about your requirement in our &lt;A href="https://community.qlik.com/t5/integration-extension-apis/bd-p/qlik-sense-integration-extension-api" target="_blank" rel="noopener"&gt;Integrations and API forums&lt;/A&gt;. There, you will have access to our active userbase as well as our active support agents.&lt;/P&gt;
&lt;P&gt;All the best,&lt;BR /&gt;Sonja&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Apr 2023 07:47:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Official-Support-Articles/Qlik-Sense-SaaS-Export-an-app-with-the-REST-API-PowerShell/tac-p/2056681#M8843</guid>
      <dc:creator>Sonja_Bauernfeind</dc:creator>
      <dc:date>2023-04-04T07:47:18Z</dc:date>
    </item>
    <item>
      <title>Re: Qlik Sense SaaS: Export an app with the REST API (PowerShell)</title>
      <link>https://community.qlik.com/t5/Official-Support-Articles/Qlik-Sense-SaaS-Export-an-app-with-the-REST-API-PowerShell/tac-p/2056683#M8844</link>
      <description>&lt;P&gt;OK. Thanks&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Apr 2023 07:48:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Official-Support-Articles/Qlik-Sense-SaaS-Export-an-app-with-the-REST-API-PowerShell/tac-p/2056683#M8844</guid>
      <dc:creator>CreoLabs</dc:creator>
      <dc:date>2023-04-04T07:48:09Z</dc:date>
    </item>
    <item>
      <title>Re: Qlik Sense SaaS: Export an app with the REST API (PowerShell)</title>
      <link>https://community.qlik.com/t5/Official-Support-Articles/Qlik-Sense-SaaS-Export-an-app-with-the-REST-API-PowerShell/tac-p/2057064#M8853</link>
      <description>&lt;P&gt;Will this work with any file in QS SaaS? QVDs? Excel?&lt;/P&gt;</description>
      <pubDate>Tue, 04 Apr 2023 18:24:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Official-Support-Articles/Qlik-Sense-SaaS-Export-an-app-with-the-REST-API-PowerShell/tac-p/2057064#M8853</guid>
      <dc:creator>William_Wistam</dc:creator>
      <dc:date>2023-04-04T18:24:28Z</dc:date>
    </item>
    <item>
      <title>Re: Qlik Sense SaaS: Export an app with the REST API (PowerShell)</title>
      <link>https://community.qlik.com/t5/Official-Support-Articles/Qlik-Sense-SaaS-Export-an-app-with-the-REST-API-PowerShell/tac-p/2057245#M8858</link>
      <description>&lt;P&gt;It's not a problem with any data file - you can make STORE to any cloud storage location easily.&lt;/P&gt;
&lt;P&gt;The problem is with the application itself - this script should support export of the app itself&lt;/P&gt;</description>
      <pubDate>Wed, 05 Apr 2023 07:02:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Official-Support-Articles/Qlik-Sense-SaaS-Export-an-app-with-the-REST-API-PowerShell/tac-p/2057245#M8858</guid>
      <dc:creator>CreoLabs</dc:creator>
      <dc:date>2023-04-05T07:02:54Z</dc:date>
    </item>
  </channel>
</rss>

