Skip to main content
Announcements
Have questions about Qlik Connect? Join us live on April 10th, at 11 AM ET: SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
durgesh22
Creator
Creator

How to trigger reload task in QMC with REST API call from Qlik Data Load editor?

Hi All,

I have a requirement to trigger reload task in QMC from Qlik Data Load editor ,but couldn't able to achieve it.

Not even able to create POST connection. Please guide. 

 

Able to perform same from Postman,refer below.

POST /qrs/task/start/synchronous?name={task name}& Xrfkey=12345678qwerty21 HTTP/1.1
Host: Server:4242
X-Qlik-Xrfkey: 12345678qwerty21
X-Qlik-User:{ UserDirectory=XXXXX;UserId=XXXXX}
Content-Type: application/json
Connection: Keep-Alive
cache-control: no-cache,no-cache

Labels (1)
1 Solution

Accepted Solutions
Bjorn_Wedbratt
Former Employee
Former Employee

Hi @durgesh22  You're for sure on the right path.

Create a POST request and put the headers listed above into Query Headers.

Make sure authentication is set to Anymous and use a client certificate previously exported out to authenticate against the QRS API as outlined here: https://help.qlik.com/en-US/connectors/Subsystems/REST_connector_help/Content/Connectors_REST/Create...

That should do it!

 

Best

Bjorn

 

View solution in original post

7 Replies
ajaykakkar93
Specialist III
Specialist III

Hi @durgesh22 ,

You are on the correct path I suggest you use Node Js to fulfill this requirement I have done it previously so I have an example ready to share please take a look at the attached example.

Please mark the correct replies as Solution. Regards, ARK
Profile| GitHub|YouTube|Extension|Mashup|Qlik API|Qlik NPrinting

durgesh22
Creator
Creator
Author

Thank @ajaykakkar93 

Is there a way this can be achieved from data load editor ?

ajaykakkar93
Specialist III
Specialist III

hi @durgesh22 ,

You can convert this node js code to an exe file & place it in your qlik server.

when you want to run use the execute command.

Please mark the correct replies as Solution. Regards, ARK
Profile| GitHub|YouTube|Extension|Mashup|Qlik API|Qlik NPrinting

Bjorn_Wedbratt
Former Employee
Former Employee

Hi @durgesh22  You're for sure on the right path.

Create a POST request and put the headers listed above into Query Headers.

Make sure authentication is set to Anymous and use a client certificate previously exported out to authenticate against the QRS API as outlined here: https://help.qlik.com/en-US/connectors/Subsystems/REST_connector_help/Content/Connectors_REST/Create...

That should do it!

 

Best

Bjorn

 

durgesh22
Creator
Creator
Author

Thanks @Bjorn_Wedbratt  

It worked after setting authentication is set to Anonymous.

Wallibee
Contributor III
Contributor III

Hi @ajaykakkar93 

 Is there a way to use the API calls from Qlik to check on the different reload task in QMC  and get the information for Task scheduling  for example which task are still to run or when they are going to run (future)

Regards.

ajaykakkar93
Specialist III
Specialist III

Yes you can  using QRS API

Please mark the correct replies as Solution. Regards, ARK
Profile| GitHub|YouTube|Extension|Mashup|Qlik API|Qlik NPrinting