Skip to main content

Official Support Articles

Search or browse our knowledge base to find answers to your questions ranging from account questions to troubleshooting error messages. The content is curated and updated by our global Support team

Announcements
NEW webinar Dec. 7th: 2023 Outlook, A Pivotal Year for Data Integration SIGN ME UP!

Qlik Sense: How to export app scripts

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

Qlik Sense: How to export app scripts

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 II
Partner - Creator II

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 II
Partner - Creator II

Great. Thanks Sonja.

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