Skip to main content
Announcements
Defect acknowledgement with Nprinting Engine May 2022 SR2, please READ HERE
cancel
Showing results for 
Search instead for 
Did you mean: 
bhawana
Contributor II
Contributor II

Nprinting API on Qliksense

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.

branch-blog.qlik.com

 
I need more information regarding :
1) NTLM authentication 
2) firewall and antivirus restriction on API calls
3) API stability 
4) Running a Batch file from QMC.
 
Can anyone help me to resolve this issue?
 
Thanks 
in Advance
 
Labels (2)
4 Replies
Lech_Miszkiewicz
Partner Ambassador/MVP
Partner Ambassador/MVP

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.

More on this here:

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

 

cheers Lech, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful to the problem.
bhawana
Contributor II
Contributor II
Author

@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.

Lech_Miszkiewicz
Partner Ambassador/MVP
Partner Ambassador/MVP

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

cheers Lech, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful to the problem.
bhawana
Contributor II
Contributor II
Author

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