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
pablolabbe
Luminary Alumni
Luminary Alumni

This is great for Qlik Sense. What about QlikView ?

Daniel_Jenkins
Specialist III
Specialist III

Just a heads-up, you will also need to allow response headers in the REST login connection settings (page 8/9):

HTH - Daniel.

Daniel_Jenkins
Specialist III
Specialist III

Hi Pablo,

From page 2 of the document:

The concepts explained in this document are applicable to call all the available NPrinting APIs;

All the examples shown in this tutorial has been tested in a QlikView script as well.

HTH - Daniel.

bramkn
Partner - Specialist
Partner - Specialist

I noticed the bug was solved with the last update, like you said when helping metrying to figure this out. But this document with all the examples and such is a great help, thanks!

ingoginqo
Partner Ambassador Alumni
Partner Ambassador Alumni

Gianluca,

this is wonderful ... thank you for the very useful documentation!

tan123qlik
Partner - Contributor III
Partner - Contributor III

I have tried but cannot get the REST connection to work.

  • I have all the right versions of Nprinting and REST installed.
  • I have turned of the firewall on the NPrinting server
  • When I try the get connection I receive the error below
  • I have tried from my own computer, from a Qlik Sense server and also installed REST+QlikView on the NPrinting server.
  • I looked in the Nprinting logs and the full error message is:
    • Qlik.NPrinting.Repo 18.0.3.0 Qlik.NPrinting.Repo.Service.AuthenticationService 20180226T151015.662+01:00 INFO STRNPRINT  0 0 0 0 0 0 0 0 Windows login failed. No valid Windows identity in the current principal.

Does anyone have a clue what the problem could be?

NP.PNG

bramkn
Partner - Specialist
Partner - Specialist

You can try API calls on the NPrinting server in the webbrowser to see what is happening.

I am assuming your login is correct and you checked all the correct checkboxes. Is the login you are using the account used to connect Sense and NPrinting together? if not can you try this account and see what happens? I have been playing with this a lot also before the bug was fixed and never had any issues with the login request.

Ruggero_Piccoli
Support
Support

Hi,

The logs say "Windows login failed. No valid Windows identity in the current principal.". Please check that you have configured the domain account field for the Qlik NPrinting user you are using.

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 your support. I have done more tests but still get the same result. I also installed Postman at the Nprintng server to test. I get the same result from that. See below for the setup from postman and Nprinting. From what I can see the accounts are correct.