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