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

Announcements
Streamlining user types in Qlik Cloud capacity-based subscriptions: Read the Details
cancel
Showing results for 
Search instead for 
Did you mean: 
FranciscoQ
Partner - Creator
Partner - Creator

Qlik Sense Automations: Start Run Mode: Webhooks: App Reload Finished

Hi !

 

So I am having a problem here.. related to how to start an automation.

First of all, due to the limitation that Automations can be reloading for just one hour:

I have to reload a lot of apps, that together take more time than one hour ( I have DATA, STG and APP Deployments). So we use some apps to create qvds, then we use other apps to transform data and generate new qvds and at the end, the applications that will have visualization and dashboards just read qvds with the information already transformed. 

So I discovered that I can use webhooks to run automations. So then I could have a workflow to reload all the data apps, then another workflow to reload all the stg apps, and at the end another workflow to reload all the final apps.

So one run mode is webhook, I can specify an event called "App reload finished" and below that a "Test Payload" appears. Just like the following image:

 

FranciscoQ_0-1640638153468.png

 

I don't know anything about JSON languague, so what I did it was to specify the id and the name of the app I want to trigger the automation. So when that app is reloaded (the last app of the DATA space), then the first app of the STAGE space start reloading and a new task chain starts.

 

So what I did it to test these feature, it was to create a workflow like this:

FranciscoQ_1-1640638345220.png

In the start block, using webhook as run mode, app reload finished, and in the Test Payload, just  changing the " id " and the " name " of an APP (STAGE_SALES), from all the script that appears below.

 

Then in a Do Reload block, I select another app to reload. (SALES) 

And I saved the automation.

 

After that I reload manually STAGE_SALES, and succesfully the automation started running and SALES reload succesfully. The problem is that the automation never stopped running. Every time SALES finished reloading, the automation started reloading again, and it was running without stopping until I deleted the automation..

The ID and the name of the app, in the webhook, was STAGE_SALES not SALES, and SALES doesn't trigger a reload for STAGE_SALES just in case you are wondering that.

 

Which could be the problem? Something else I have to specify in the webhook "test payload"? something wrong about how I create the workflow ? Should I put something else below the "Do Reload" block to stop the automation ?

 

Sorry for the long explanation, I hope I made myself understand correctly.

 

Regards and thanks in advance!

 

 

 

1 Reply
Emile_Koslowski
Employee
Employee

Hi @FranciscoQ ,

It's currently not possible to subscribe to events of specific apps. For now, they will be triggered for every app in your tenant. We are working on a new version that will solve this. 

In the meantime, you could add a condition block to verify which app triggered the App Reload Finished event. The id of the reloaded app is returned by the App Reload Finished start block. You can find an example of this in the template "Notify your team on Slack on app reload finished webhook". 

Kind regards,
Emile