Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
Karthick30
Creator
Creator

How to export all apps in one stream in single shot

Hello,

 Is there any way to export all the apps in one particular stream and convert it as Zip format.

Total apps is 33

Any idea

 

 

 

 

Labels (1)
3 Replies
Levi_Turner
Employee
Employee

This is an ideal use case for the Qlik-Cli-Windows PowerShell library (check the wiki for some guidance on getting things set up). This script isn't productionalized but works and shows the concept:

$basePath = 'C:\tmp\exporter'

# Navigate to the path where you want the QVFs
Set-Location $basePath

# Connect to Qlik
Connect-Qlik

# Get all apps in a specified stream and export them
Get-QlikApp -filter "stream.name eq 'Monitoring Apps'" | foreach {Export-QlikApp -id $_.id -filename "$($_.name).qvf"}

# Compress all the QVF files in your export path to a ZIP
# Adapted from https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.archive/compress-archive?view=powershell-5.1
$compress = @{
  Path = "$($basePath)\*.qvf"
  CompressionLevel = "Fastest"
  DestinationPath = "$($basePath)\apps.Zip"
}
Compress-Archive @compress