Qlik Community

Qlik Sense Integration, Extensions, & APIs

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

adam_westhusing
New Contributor II

Is it possible to export extensions via QRS API?

From the UI you can export extensions in the QMC.  Is it possible to export extensions via the QRS API or another Qlik Sense API? !

Tags (3)
1 Solution

Accepted Solutions
Employee
Employee

Re: Is it possible to export extensions via QRS API?

Hey Adam,

Sure. The endpoint is going to be GET https://servername:443/api/wes/v1/extensions/export/ExtensionName

In a Qlik CLI framework the code would be like this:

# Scrape the hostname from the Host.cfg

$Data = Get-Content C:\ProgramData\Qlik\Sense\Host.cfg

# Convert the base64 encoded install name for Sense to UTF data

$FQDN = [System.Text.Encoding]::UTF8.GetString([System.Convert]::FromBase64String($($Data)))

Connect-Qlik -ComputerName https://$($FQDN):443 -UseDefaultCredentials

Invoke-QlikDownload -path https://$($FQDN)/api/wes/v1/extensions/export/blah -filename blah.zip

2 Replies
Employee
Employee

Re: Is it possible to export extensions via QRS API?

Hey Adam,

Sure. The endpoint is going to be GET https://servername:443/api/wes/v1/extensions/export/ExtensionName

In a Qlik CLI framework the code would be like this:

# Scrape the hostname from the Host.cfg

$Data = Get-Content C:\ProgramData\Qlik\Sense\Host.cfg

# Convert the base64 encoded install name for Sense to UTF data

$FQDN = [System.Text.Encoding]::UTF8.GetString([System.Convert]::FromBase64String($($Data)))

Connect-Qlik -ComputerName https://$($FQDN):443 -UseDefaultCredentials

Invoke-QlikDownload -path https://$($FQDN)/api/wes/v1/extensions/export/blah -filename blah.zip

adam_westhusing
New Contributor II

Re: Is it possible to export extensions via QRS API?

This worked perfectly for me.  Thanks!

Community Browser