Skip to content

Instantly share code, notes, and snippets.

@erikwett
Last active August 22, 2018 14:47
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save erikwett/b75781fa00c51ec31023cc9033734dc2 to your computer and use it in GitHub Desktop.
Create Qlik Sense reload task from javascript
function createTask(appid, appname){
qlik.callRepository('/qrs/ReloadTask', 'POST', {
app: {
id: appid
},
enabled: true,
name: "Reload " + appname,
maxRetries: 5
}).then(function(reply){
console.log('Task created',reply);
if (reply.data && reply.data.id) {
//Task created, let's run it
startReload(reply.data.id);
}
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment