Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi All,
I am working on below API. I was able to copy paste and create a HTML script but unable to generate the pop up.
HI @bhawana
May I ask you what do you need this API for? What are you going to use it for? If the purpose is to trigger task there are much better ways by using API and Qlik Sense REST connector. Obviously there can be a lot more done.
https://nprintingadventures.com/2019/04/08/nprinting-api-qlik-rest-subroutines/
read it carefully, there is a link inside my post to "how configure REST" etc....
This API is reliable as well as solution. I am using it in production deployments with many of our clients.
Link to API reference is on https://help.qlik.com
@Lech_Miszkiewicz The purpose is to add a process if QMC task does not finish by scheduled time , Nprinting email should not be sent as well.
Ok - then my suggestion should be right for you.
All that can be easily done using Qlik load script and method I gave you links to. Using Qlik load script will allow to easily use it in QMC.
thanks
Lech
1.Created the following Query : NPrinting API task starter<script src="http://code.jquery.com/jquery-1.10.1.min.js"></script> <script type="text/javascript"> (function(){ console.log("started") var taskIDs=[ "84f8a567-f488-4fad-bbe3-43c8b2cf2b3c" ] $.ajax({ url: 'https://abc.com:4993/api/v1/login/ntlm', xhrFields: { withCredentials: true } }).done(function(data) { console.log(data); for(var i=0;i </script>
2.Query was able to generate a pop up for API task Starter. 3. Checked Nprinting task executions but this API call didnot trigger the app to run. 4 Used ntlm and task execution url in postman to see where the issue was(Postman showed Token Mismatch error with 401 unauthorized authentication code status) Forbidden Forbidden
REVEL_CSRF: tokens mismatch.
5. Researched on Qlik articles and Changed token key and values as suggested in the support article: https://support.qlik.com/articles/Basic/How-to-Authenticate-Connect-with-the-Qlik-NPrinting-API-in-P...
6. This did not resolve the token mismatch error.
Can someone please help me?
Thanks
in advance