Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi,
I've created five reload tasks for an app in Qlik Cloud:
e.g. "15", "30", "45", "00" and "Triggered Reload".
Four of them start every 15 minutes, and one is automatically triggered when another app has been successfully loaded.
I can retrieve all reloads using the REST API. Each one has a "ReloadID," but I can't find any indication of which task triggered that reload.
How can I find out which reload was started by the triggered task?
Best regards,
Thomas
Hi @Thomas23 ,
I don't think Qlik Cloud records that - but I would check the Events API to make sure.
Since you look familiar with the REST APIs, and that you are using the REST APIs to reload your apps, you could pass a variable value through the POST Reloads - https://qlik.dev/apis/rest/reloads/#post-api-v1-reloads - to inject into your Reload Log the caller of the reload - example: TRACE App Caller ID $(vCalllerAppID);
This will record in the logs who call the reload process.
Another alternative is to use Qlik Automate to record that as well - Automate Logs, files, database, etc.
Regards,
Mark Costa
Read more at Data Voyagers - datavoyagers.net
Follow me on my LinkedIn | Know IPC Global at ipc-global.com
Hi @Thomas23
Try the following:
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12$h = @{ "Authorization" = "Bearer <api key>" } $appId = "<appid>" $url = "https://<tenant>.us.qlikcloud.com/api/v1/reloads?appId=$appId&limit=100" $all = @() do { $r = Invoke-RestMethod -Uri $url -Headers $h $all += $r.data $url = if ($r.links.next) { "https://<tenant>.us.qlikcloud.com" + $r.links.next } else { $null } } while ($url) $all | Select-Object id, type, status, startTime, endTime | Format-Table -AutoSize
Check the reload type:
choreographer - event-triggered
scheduled - scheduled
manual - manual or via API
I hope that helps.
Eduardo Monteiro - Senior Support Engineer @ IPC Global
Follow me on my LinkedIn | Know IPC Global at ipc-global.com