Last active
August 22, 2018 14:47
-
-
Save erikwett/b75781fa00c51ec31023cc9033734dc2 to your computer and use it in GitHub Desktop.
Create Qlik Sense reload task from javascript
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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