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

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
cancel
Showing results for 
Search instead for 
Did you mean: 
sergeyko
Partner - Creator
Partner - Creator

Fetching response from a triggered automation in async mode using API

Hi there - We are seeking assistance in implementing our use case with an app automation.

TL;DR Question: Is there any way we can fetch the response from triggered automation running in asynchronous mode using any of the available API endpoints?

If the answer is not, are there any other options to accomplish our use case below?

Our Use Case:

  • We need to trigger an app automation programmatically (e.g. via an API call) and pass some parameters to the automation
  • The automation may run anywhere from 10 sec to a few min depending on the input parameters
  • We need to fetch the response from this automation programmatically (e.g. via an API call, same as above or a different one)

So far we set up a triggered automation and we call it via its dedicated Webhook URL. We are able to pass our required parameters in the URL and access them in the automation. The same API call gives us the expected response upon completing the automation.

This is described in more detail here: https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_QlikAutomation/working-with-...

Where it gets tricky is that we often run into a limit of 90 seconds for executing a triggered automation. Our research shows that the only option to overcome this limit is to switch to executing the automation in asynchronous mode. When we do that, our original API call starts to return the execution job status and ID instead of the actual response. It makes sense given that the automation is now first put into a queue and then executed as needed. When we run the automation in async mode via UI, it eventually gives us the expected response.

Where we struggle is with getting the eventual response from the automation via API/URL. Is there any way we can do that using the available API endpoints? Our hope is we can get the result from API using the execution job ID but we were not able to find the appropriate API endpoint.

Labels (2)
1 Reply
sergeyko
Partner - Creator
Partner - Creator
Author

@Emile_Koslowski - Wondering if you have any thoughts here.