Qlik Community

Qlik Sense Integration, Extensions, & APIs

Discussion board where members can learn more about Integration, Extensions and API’s for Qlik Sense.

If you are a Qlik Insight Bot user, join this collaborative group: JOIN GROUP
New Contributor

Import and export tasks via Qlik-Cli


I'm trying to create a PowerShell script that can export and import all tasks in an environment using Qlik-Cli. I'm using the Import-QlikObject function, but I get the following error:

Invoke-RestMethod : The remote server returned an error: (400) Bad Request.

The code I'm currently using is:

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

Am I doing something wrong? Is there a different and better way to export and import tasks?


Labels (3)