<?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 Import and export tasks via Qlik-Cli in Integration, Extension &amp; APIs</title>
    <link>https://community.qlik.com/t5/Integration-Extension-APIs/Import-and-export-tasks-via-Qlik-Cli/m-p/1638786#M11616</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm trying to create a PowerShell script that can export and import all tasks in an environment using &lt;EM&gt;Qlik-Cli&lt;/EM&gt;. I'm using the &lt;EM&gt;Import-QlikObject&lt;/EM&gt; function, but I get the following error:&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;Invoke-RestMethod : The remote server returned an error: (400) Bad Request.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;The code I'm currently using is:&lt;/P&gt;&lt;PRE&gt;Connect-Qlik -ComputerName $env:COMPUTERNAME -UseDefaultCredentials -TrustAllCerts
Get-QlikTask -full -raw | ConvertTo-Json | Out-File "tasks.json"
$Tasks = Get-Content -raw "tasks.json" | ConvertFrom-Json | Import-QlikObject&lt;/PRE&gt;&lt;P&gt;Am I doing something wrong? Is there a different and better way to export and import tasks?&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 04:17:46 GMT</pubDate>
    <dc:creator>matteosilvestro</dc:creator>
    <dc:date>2024-11-16T04:17:46Z</dc:date>
    <item>
      <title>Import and export tasks via Qlik-Cli</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Import-and-export-tasks-via-Qlik-Cli/m-p/1638786#M11616</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm trying to create a PowerShell script that can export and import all tasks in an environment using &lt;EM&gt;Qlik-Cli&lt;/EM&gt;. I'm using the &lt;EM&gt;Import-QlikObject&lt;/EM&gt; function, but I get the following error:&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;Invoke-RestMethod : The remote server returned an error: (400) Bad Request.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;The code I'm currently using is:&lt;/P&gt;&lt;PRE&gt;Connect-Qlik -ComputerName $env:COMPUTERNAME -UseDefaultCredentials -TrustAllCerts
Get-QlikTask -full -raw | ConvertTo-Json | Out-File "tasks.json"
$Tasks = Get-Content -raw "tasks.json" | ConvertFrom-Json | Import-QlikObject&lt;/PRE&gt;&lt;P&gt;Am I doing something wrong? Is there a different and better way to export and import tasks?&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 04:17:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Import-and-export-tasks-via-Qlik-Cli/m-p/1638786#M11616</guid>
      <dc:creator>matteosilvestro</dc:creator>
      <dc:date>2024-11-16T04:17:46Z</dc:date>
    </item>
  </channel>
</rss>

