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: 
Gianluca_Perin
Employee
Employee

How to use Qlik NPrinting APIs inside a Qlik Sense load script

Hi all,

attached you'll find a step by step tutorial explaining how to use Qlik Sense (and also QlikView) load script to interact with the Qlik NPrinting APIs.

The examples include:

  • Logging in into NPrinting
  • Collecting data from NPrinting
  • Reloading metadata for a NPrinting connection
  • Create, update and delete NPrinting users
  • Triggering a NPrinting publish task

This document also shows how to use Qlik Sense Tasks to chain these different events directly from QMC.

This tutorial uses standard Qlik REST Connector.

Please read carefully the requirements before to dig into the actual examples.

Enjoy!

58 Replies
tan123qlik
Partner - Contributor III
Partner - Contributor III

Capture1.PNGCapture2.PNG

kfoudhaily
Partner - Creator III
Partner - Creator III

hello, did you check if you are using http or https?

are you using a self signed certificate?

I have tried it out and it seams to working ok for me.

in order to check, you may install Google Chrome ARC extension and see if you succeed to establish an NTLM connection to you NPrinting server.

regards,

QlikView Qlik Sense consultant
Daniel_Jenkins
Specialist III
Specialist III

Hi Thomas,

Works for me. The only differences I can see are marked:

HTH - Daniel.

Ruggero_Piccoli
Support
Support

Hi,

Did you tried to activate the XHR extension?

XHR extension.png

Best Regards,

Ruggero

---------------------------------------------

When applicable please mark the appropriate replies as CORRECT. This will help community members and Qlik Employees know which discussions have already been addressed and have a possible known solution. Please mark threads as HELPFUL if the provided solution is helpful to the problem, but does not necessarily solve the indicated problem. You can mark multiple threads as HELPFUL if you feel additional info is useful to others.



Best Regards,
Ruggero
---------------------------------------------
When applicable please mark the appropriate replies as CORRECT. This will help community members and Qlik Employees know which discussions have already been addressed and have a possible known solution. Please mark threads with a LIKE if the provided solution is helpful to the problem, but does not necessarily solve the indicated problem. You can mark multiple threads with LIKEs if you feel additional info is useful to others.
tan123qlik
Partner - Contributor III
Partner - Contributor III

Thanks for all your support.

I finally found the error. I had written https://strnprint:4993/api/V1/login/ntlm

If you look carfully you see a capital "V". When I changed that to a lower case "v" everyting works

glacoste
Creator
Creator

Dear Guys!,

I try follow the example from QlikView but I see the follow error in the step of retry user information:

2018-03-13 17_36_06-qlikview_test.cramer.cl - Conexión a Escritorio remotoBORDE.png

I have user with locale in 'es' and 'pt-BR' in appear nprinting failt to get information of the pt-BR users !, this is a issue?

I use:

Qlik Rest Connector 1.3.0

QlikView Desktop November 2017 SR1

Qlik NPrinting February 2018 SR1 18.0.4

Ruggero_Piccoli
Support
Support

Hi Gustavo,

This seems a bug. To better investigate please open a support ticket. Send us all useful information like the logs and, if possible, a backup of you NPrinting repository.



Best Regards,
Ruggero
---------------------------------------------
When applicable please mark the appropriate replies as CORRECT. This will help community members and Qlik Employees know which discussions have already been addressed and have a possible known solution. Please mark threads with a LIKE if the provided solution is helpful to the problem, but does not necessarily solve the indicated problem. You can mark multiple threads with LIKEs if you feel additional info is useful to others.
glacoste
Creator
Creator

I change the locale for the users from 'pt-BR' to 'es' and this work correctly, I send a case for review the bug.

I think that nprinting has a problem with the '-' character, this character is present in the locale string and the machine name

Ruggero_Piccoli
Support
Support

Thanks for your test, it confirms that it is better to deeper investigate.

BR,

Ruggero



Best Regards,
Ruggero
---------------------------------------------
When applicable please mark the appropriate replies as CORRECT. This will help community members and Qlik Employees know which discussions have already been addressed and have a possible known solution. Please mark threads with a LIKE if the provided solution is helpful to the problem, but does not necessarily solve the indicated problem. You can mark multiple threads with LIKEs if you feel additional info is useful to others.
pokassov
Specialist
Specialist

Hi Gianluca,

Great job!

Does Rest API have a row limit?

I connected to NPrinting and load the list of apps using your example.

I've got only 50 rows.

Meanwhile, I have 63 apps.

The same is true for tasks, connections, etc.

Do you know how to extract all the rows?

Best regards,

Sergey