Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
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
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
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.
Thank @ajaykakkar93
Is there a way this can be achieved from data load editor ?
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.
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
Thanks @Bjorn_Wedbratt
It worked after setting authentication is set to Anonymous.
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.