Qlik Community

Qlik Sense App Development

Discussion board where members can learn more about Qlik Sense App Development and Usage.

Announcements
Qlik® Product Spotlight: Discover what’s possible. Get more from our products.
See for yourself. Register today.
alec1982
Valued Contributor II

Set up external tasks on QlikSense

hi all,

Is there anyway to create external tasks on Sense similar to QV?

Thanks,

Alec

10 Replies
Employee
Employee

Re: Set up external tasks on QlikSense

alec1982
Valued Contributor II

Re: Set up external tasks on QlikSense

hi Vincenzo,

thanks for the information.. not sure if that gives me an idea on how to set it.

the way I look at it is I have a batch file and need to run that file from QlikSense then load an app once the external task complete running the batch file..

Employee
Employee

Re: Set up external tasks on QlikSense

If you need to fire the API REST call from a batch file you want to find out a way to make a GET HTTP call. You have a variety of options. The first on the top of my head is using curl (it's part of a standard UNIX distribution, but you have to install it on a Windows os). A Python script is another option.

What exactly do you mean with "run a batch from Qlik Sense"? During the script load or on-demand from the Qlik Sense app?

alec1982
Valued Contributor II

Re: Set up external tasks on QlikSense

no. I am looking to replicate the option available on QlikView QMC where you can create supporting tasks.

the supporting task can be a batch file to do something on a server such as moving file from one place to another or it could be a Power Shell script to download some files from web.. etc.

in QlikView QMC there is an option to create external task and trigger this external batch file to run on a set schedule then have a dashboard task dependent on it.

Employee
Employee

Re: Set up external tasks on QlikSense

As far as I understood you need to create a mixed chain tasks which include general purpose as well as data reload tasks. Qlik Sense schedule service (QSS) can create and trigger two type of tasks (reload data and sync users). An option to have a mixed tasks chain is to use an external scheduler (eg. Windows default AT) to trigger any kind of task you need, including Qlik Sense data reload tasks

brindlogcool
Contributor III

Re: Set up external tasks on QlikSense

Did you got any solution for the external task? I am looking for the similar solution.

Employee
Employee

Re: Set up external tasks on QlikSense

The solution is not to handle an external task in Qlik Sense Scheduler, but on the contrary handle Qlik Sense Task (and of course all other tasks) on an external scheduler.

You can reload a task calling this API (http://help.qlik.com/en-US/sense-developer/3.2/Subsystems/RepositoryServiceAPI/Content/RepositorySer...)

Or you can trigger a task calling this API (Task: Start asynchronous ‒ Qlik Sense)

brindlogcool
Contributor III

Re: Set up external tasks on QlikSense

But it is duplicating the existing functionality. Let say I want to trigger the external task for 5 different applications I don't want to trigger the tasks from API for all the 5 applications.

Employee
Employee

Re: Set up external tasks on QlikSense

Let's say, you have a simple task (just an app to reload) or a more complex one (a number of apps chained all togheder in a dense network of dependencies). You define your task in the Qlik Sense scheduler, using the Qlik functionality. You just don't need to set starting time, because you'll "trigger" the start of the chain with a simple API call (in your case the syncronus version) and let's some other schedulr (eg. on borded AT) do it for you. After the execution AT can start some other tasks.

I can't see the duplication of functionality.