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: 
sam_1919
Partner - Contributor III
Partner - Contributor III

Triggering Qlik NPrinting Publish task Automatically after successful Qlik Sense Data Load

Hi All,

1. How to trigger a Qlik NPrinting task automatically as soon as

the Qlik Sense application is loaded with the data.

2. Also there is a UserID in one of the fields of Qlik Sense.

How to Specifically send the data associated to that user id to the respective mails to the user with that User ID?

Currently we are having

NPrinting February 2018

and

Qlik Sense Server February 2018.

It would be helpful if i get the information at the earliest.

Thanks and Regards

Saiprasad Ashok More

14 Replies
Digvijay_Singh

FYI, We use many of the pieces from this post in May 2021 release. We have around 20 nprinting tasks chained together and they trigger in a sequence after one main task finishes reload. Occasionally I get connection error but I am living with it as of now because it takes more than 3 days to finish all of my 20 tasks.

Ruggero_Piccoli
Support
Support

Hi @rohitk1609 ,

Do you mean a native feature to trigger a publish task after the end of a reload task without using Qlik NPrinting public APIs? The answer is no. If you cannot schedule the publish task by estimating the time needed by the reload to be finished, you have to use APIs. After starting the reload you can use https://help.qlik.com/en-US/nprinting/May2021/APIs/NP+API/index.html?page=55 to periodically retrieve its status https://help.qlik.com/en-US/nprinting/May2021/APIs/NP+API/index.html?page=126 and start the next task with https://help.qlik.com/en-US/nprinting/May2021/APIs/NP+API/index.html?page=57.

Best Regards,

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.
rohitk1609
Master
Master

I want to trigger Nprinting task after execution of Qlik Sense app by POST method. Is it possible in latest release?

Frank_S
Support
Support

Hi Rohit

 

First, if using Qlik Sense Ideally you want to be on at least Qlik Sense Sept. 2020 Patch 2 or later versions to mitigate Qlik Sense rest connector issues.

Then you can follow Jonny Poole's article (keeping in mind to update the cookie code in the load script as mentioned in the article above and is also conveniently link in Jonny NPrinting document as well)

 

Note: (May 2021 SR 3 is the latest version of NPrinting and we suggest upgrading to that version as well since this version fixes a problem with the NP designer you may circumvent via this upgrade. https://community.qlik.com/t5/Knowledge/Qlik-NPrinting-can-t-find-supported-reporting-template-edito...)

 

Kind regards...

 

 

Please remember hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!
Lech_Miszkiewicz
Partner Ambassador/MVP
Partner Ambassador/MVP

Hi Rohit,

It was possible since 2018 and the same method still works until today and as Ruggero pointed above it is described step by step in the link https://community.qlik.com/t5/Qlik-NPrinting-Discussions/How-to-use-Qlik-NPrinting-APIs-inside-a-Qli...

I posted about it on my blog here - I provided list of reusable subroutines:

https://nprintingadventures.com/2019/04/08/nprinting-api-qlik-rest-subroutines/

That method uses POST method through Qlik Sense load script wit REST connector.

 

As an alternative you can create your own piece of software or code and use "External Task" property to trigger it: 

https://help.qlik.com/en-US/sense-admin/November2021/Subsystems/DeployAdministerQSE/Content/Sense_De...

Or if you have had something else in mind please elaborate and provide more details.

cheers

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.