Skip to main content
Announcements
Have questions about Qlik Connect? Join us live on April 10th, at 11 AM ET: SIGN UP NOW

Qlik Sense: How to export app scripts

No ratings
cancel
Showing results for 
Search instead for 
Did you mean: 
Sonja_Bauernfeind
Digital Support
Digital Support

Qlik Sense: How to export app scripts

Last Update:

Sep 21, 2022 4:16:46 AM

Updated By:

Sonja_Bauernfeind

Created date:

May 3, 2019 5:02:30 AM

Scripts need to be exported using the Qlik Sense Engine APIs.

 

Resolution


The Engine API and the Capability API both have a method/function called GetScript() that will allow the app script to be exported. Once the script is accessed, it can be saved to disc, for example, a folder that is perhaps monitored by a change control system. The Engine API can be found here and the Capability API can be found here. The following are examples of both APIs:

Engine API:

 

IAppIdentifier foundAppIdentifier = _location.AppWithId("....appId....");
IApp app = _location.App(foundAppIdentifier);
string script = app.GetScript();
Console.WriteLine(script);

 



Capability API:

 

var app = qlik.openApp("....appId....");
app.getScript().then( function(script){
  console.log(script);
});

 

 

Related Content:

Get started with APIs on Windows 
GetScript Method (Engine)
getScript method (Capability API)

Qlik Sense: call Qlik Sense Engine API with Python 
Qlik Sense Repository API/Engine API(Enigma.js) example with JWT authentication: duplicate/scramble/... 
Qlik Sense: Getting started with the .NET SDK 

Labels (3)
Comments
PhilipMertin
Partner - Contributor III
Partner - Contributor III

Anyway you could set up a guide or step list of what to do to actually get the script exported? I for one have never worked with the API's and don't know how..

Sonja_Bauernfeind
Digital Support
Digital Support

Hello @PhilipMertin 

The creation of custom code is not something we can provide for every example, but I will reach out to some of our SMEs to see what I can dig up for you. In the meantime, the Integration, Extension, and API forum may be able to help you!

All the best,

Sonja 

barnabyd
Partner - Creator III
Partner - Creator III

Can you provide a link to a simple example on how to create a script to connect to the Engine API?

Sonja_Bauernfeind
Digital Support
Digital Support

Hello @barnabyd 

Here are three possible examples:

Qlik Sense: call Qlik Sense Engine API with Python 
Qlik Sense Repository API/Engine API(Enigma.js) example with JWT authentication: duplicate/scramble/... 
Qlik Sense: Getting started with the .NET SDK 

If you need additional help, I would recommend posting your query directly in our Qlik Sense Integrations, Extensions, and APIs forum to make use of the wider reach into our community and our active support engineers.

All the best,
Sonja 

barnabyd
Partner - Creator III
Partner - Creator III

Great. Thanks Sonja.

Version history
Last update:
‎2022-09-21 04:16 AM
Updated by: