Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi team,
Two years ago I have created a process where I execute the Qlik app, it triggers NPrining Task by using NPrinting APi, the document name is "How to use Qlik NPrinting APIs inside a Qlik Sense load script". Lately I have heard that NPrinting API call to do this exercise is depreciated. Same document is attached in this ticket.
Is it really deprecated? If yes, how to trigger NPrinting task from Qlik Sense?
Secondly, Is it possible to trigger Qlik Sense task from NPrinting?
Hi Rohit
It is possible to execute an NPrinting Publish Task or Connection reload from a Qlik Sense app using NP Api's.
However it is not possible to execute a Qlik Sense task as a depency of an NPrinting task. To execute and Qlik Sense job, I would suggest scheduling those jobs in Qlik Sense.
So for example, you can create a Qlik Sense task which reloads a Qlik Sense app containing API which reloads an NPrinting connection (as a dependency of completion of the Original Qlik Sense task that reloads an app for example.
Then Have another QS app which contains NP API which is used to reload a publish task (again as a dependency of the Connection Reload task).
Feel free to use the code inside these to QVFs if you wish. (keep in mind you must have Qlik Sense Sept. 2020 Patch 2 or later for the code to work).
If you need development assistance beyond what I've provided in the attached apps, please feel free to reach out to other Qlik Partners or Qlik Professional services.
BTW, please share where you heard that it is 'deprecated'. It is possible that what you heard is that the certain syntax is required with Qlik Sense Sept. 2020 and later versions. So yes certain 'code' was deprecated but the APIs have not been. The updated code is in the attached QVFs.
There is an article about this change as well.
https://community.qlik.com/t5/Official-Support-Articles/Qlik-Sense-June-2020-connecting-to-NPrinting...
Kind regards...
Hi Rohit
It is possible to execute an NPrinting Publish Task or Connection reload from a Qlik Sense app using NP Api's.
However it is not possible to execute a Qlik Sense task as a depency of an NPrinting task. To execute and Qlik Sense job, I would suggest scheduling those jobs in Qlik Sense.
So for example, you can create a Qlik Sense task which reloads a Qlik Sense app containing API which reloads an NPrinting connection (as a dependency of completion of the Original Qlik Sense task that reloads an app for example.
Then Have another QS app which contains NP API which is used to reload a publish task (again as a dependency of the Connection Reload task).
Feel free to use the code inside these to QVFs if you wish. (keep in mind you must have Qlik Sense Sept. 2020 Patch 2 or later for the code to work).
If you need development assistance beyond what I've provided in the attached apps, please feel free to reach out to other Qlik Partners or Qlik Professional services.
BTW, please share where you heard that it is 'deprecated'. It is possible that what you heard is that the certain syntax is required with Qlik Sense Sept. 2020 and later versions. So yes certain 'code' was deprecated but the APIs have not been. The updated code is in the attached QVFs.
There is an article about this change as well.
https://community.qlik.com/t5/Official-Support-Articles/Qlik-Sense-June-2020-connecting-to-NPrinting...
Kind regards...
Hi,
Could you tell us which API you read is deprecated and where you read it? Thanks.
About APIs you can refer to https://help.qlik.com/en-US/nprinting/May2022/Content/NPrinting/Extending/Intro-Extending.htm this page is updated at every release. Please refer to it, that is the official documentation, to be sure an API is still valid or deprecated. Thanks.
Best Regards,
Ruggero
Hello @Frank_S Thanks for posting the qvf, I'm using this with Qlik Sense August 2022 Version and I encounter the below error.
Hi @atiwari
I downloaded the app from this conversation and placed it into my supported environment. (this app only will work with current supported versions of Qlik Sense.) and it works as expected.
All I can add is that you make sure your Qlik Sense version is up to date.
Check that you have accurately configured your get and post connections (test succeeded)
Carefully re-read the instructions inside the load script of the QS app found in this community post..
(Note that the load script is referring to NP App name. ie: replace QVFs with your NP App name that contains the NP connection that is behind your publish task).
Kind regards....
I will add that I have written subroutines NPrinting.qvs which you can easily configure and which are simplifying the whole process.
https://nprintingadventures.com/2019/04/08/nprinting-api-qlik-rest-subroutines/
cheers