Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Recently I have heard this question several times, therefore it might be worth of writting something about it.
Since version 17.2, NPrinting has empowered its features to external programs by its RESTful APIs. User may easily control and get data from the system with the APIs now. It is a very popular scenario that user wants to start the NPrinting Publish task right after the data reload is done in the QlikView application, so that the published report will have the latest data.
There are several possible ways to it. In this example you will find how to trigger and monitor the NPrinting task through QlikView load script, which requires nothing more than a QlikView Desktop and a Qlik REST connector, besides of the NPrinting environment. In the end of this article you will also see how to chain it with a QlikView document reload task in the QMC, so that the NPrinting task will automatically start right after the QlikView reload task is finished.
Some prerequisites for using this example:
And this article might be helpful with more information regarding to using NPrinting APIs.
The attached QlikView application in this example is quite self-explanatory. Here I will just list some key components for your attention.
The screenshots below show an example of creating a POST connection for authentication in Qlik REST connector.
Download the attached QlikView document and reload it from your QlikView server machine to test how it works.
At last, you may want to create a reload task in QlikView QMC and chain it to the reload task of your data application, so that the NPrinting publish task will be triggered automatically after the QlikView data reload task is completed successfully. You can find the settings from the screenshot below, or get help from this community article.
Thanks for your reading!
Excellent work!
Did I already said it? LOL
The same concept can be applied in Qlik Sense as well, by creating chained tasks.
hello,
I have worked on the same issue in march using NPrinting 18
How to use Qlik NPrinting APIs inside a Qlik View load script
@kh fou: According to tests we did with Yang, if the NPrinting server is not located in the same machine of the QV Server, your example would not work, as prerequisite 5 is not fulfilled and origin keyword is not included into your header
it's true that I have only tested it where qlikview end nprinting server are running on the same server but it's working very fine to me.
regards,
Hi,
About your post, how can solve this? My nprinting server is a different server from Qlik, what and where I need to put some information? It's my first time using qlik rest connector and npriting