Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hello Experts ,
i am working on automation of auto deployment QlikSense file, so need your assistance to achieve below automation challenge.
We are having one QVF file which we want to import and publish through QMC.
We want to connect QMC server through any desktop , is there any way to deploy QVF file through any command or API or websocket or any other way , through which i will be able to connect QMC server and do import and publish my QVF file.
any help will be highly appreciable.
Dear getabhishek1
You can use Qlik-Cli to perform this automation. Please follow those steps:
1.) Ensure that you have PowerShell 5.x in your computer.
2.) Download Qlik-Cli from the following URL: https://github.com/ahaydon/Qlik-Cli
3.) Extract it to C:\Program Files\WindowsPowerShell\Modules\Qlik-Cli
4.) Open C:\Program Files\WindowsPowerShell\Modules\Qlik-Cli\Qlik-Cli.psm1
and add after
[System.Net.ServicePointManager]::CertificatePolicy = New-Object TrustAllCertsPolicy
the following line
$result = Invoke-WebRequest -Uri "https://IpAddress/resource"
5.) Import the module by running the following command in PowerShell > Import-Module Qlik-Cli
6.) Ensure that the module has been installed with the following command in PowerShell > Get-Help Qlik
7.) Try to connect with a Certificate to Qlik Sense
Get-ChildItem cert:CurrentUser\My | Where-Object { $_.FriendlyName -eq 'QlikClient' } | Connect-Qlik qliksense_hostname
Example
Get-ChildItem cert:CurrentUser\My | Where-Object { $_.FriendlyName -eq 'QlikClient' } | Connect-Qlik vmqlik
8.) Import the target application with the following command in PowerShell
Import-QlikApp <Application File> -upload
Example
Import-QlikApp '.\ABC Invoice Check.qvf' -upload
Note down the id from the import command.
9.) Publish the application to a stream
Publish-QlikApp -id <Application ID from Step 7> -stream <Stream Name>
Example
Publish-QlikApp -id 352d77d8-6902-446e-b80e-848a67c617fc -stream Everyone
I have tried the aforementioned commands on a virtual machine with the following specs:
If you want to fully automate this process you should write a script which:
Sorry for the long post!
Best regards,
Ilias