Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik and ServiceNow Partner to Bring Trusted Enterprise Context into AI-Powered Workflows. Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
Thomas23
Contributor III
Contributor III

Identify the calling reload task

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

Labels (1)
  • API

2 Replies
marksouzacosta

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

Eduardo_Monteiro
Partner - Creator II
Partner - Creator II

Hi @Thomas23 

Try the following:

powershell
[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

aaa.png

I hope that helps.

Eduardo Monteiro - Senior Support Engineer @ IPC Global
Follow me on my LinkedIn | Know IPC Global at ipc-global.com