Qlik Community

Ask a Question

Integration, Extension & APIs

Discussion board where members can learn more about Integration, Extensions and API’s for Qlik Sense.

Announcements
LINKEDIN LIVE: Democratizing data to enhance customer-centricity. JULY 29TH REGISTER TODAY
cancel
Showing results for 
Search instead for 
Did you mean: 
durgesh22
Contributor III
Contributor III

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
Support
Support

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

6 Replies
ajaykakkar93
Specialist
Specialist

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.

durgesh22
Contributor III
Contributor III
Author

Thank @ajaykakkar93 

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

ajaykakkar93
Specialist
Specialist

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.

Bjorn_Wedbratt
Support
Support

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

durgesh22
Contributor III
Contributor III
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.