
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Qlik Sense: How to export app scripts
Sep 21, 2022 4:16:46 AM
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

- Mark as Read
- Mark as New
- Bookmark
- Permalink
- Report Inappropriate Content
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..

- Mark as Read
- Mark as New
- Bookmark
- Permalink
- Report Inappropriate Content
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

- Mark as Read
- Mark as New
- Bookmark
- Permalink
- Report Inappropriate Content
Can you provide a link to a simple example on how to create a script to connect to the Engine API?

- Mark as Read
- Mark as New
- Bookmark
- Permalink
- Report Inappropriate Content
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

- Mark as Read
- Mark as New
- Bookmark
- Permalink
- Report Inappropriate Content
Great. Thanks Sonja.

- Mark as Read
- Mark as New
- Bookmark
- Permalink
- Report Inappropriate Content

- Mark as Read
- Mark as New
- Bookmark
- Permalink
- Report Inappropriate Content
Hello @AkashPohare_HB
I recommend posting your requirement in the Integration and Extension forum, where our active product experts and your knowledgeable Qlik peers are better able to assist you.
All the best,
Sonja