Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
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
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