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: 
parevrac
Contributor III
Contributor III

NPrinting User Import/Delete

I have set up a user import task which imports a variable list of users depending on criteria set within the source Qlik document.  I was expecting that this would delete all users that no longer meet the criteria - why does it not do this?

The criteria select any of up to 10,000 employees who have training activities that are due within the next 3 months and NPrinting is set up to deliver an individual email to each of these employees including a listing of these training activities. In the latest monthly email distribution several people received emails who had no training activities due.  I thought that the user import task would have deleted these users but it hadn't  - how do i make it delete those users that have no training due?

Labels (2)
2 Solutions

Accepted Solutions
Lech_Miszkiewicz
Partner Ambassador/MVP
Partner Ambassador/MVP

Hi @parevrac ,

Ruggero has provided you a link to available api and documentation. You need to write custom script/code to use it in a software of your choice. you can create your own webapp or maybe use custom Qlik Sense script and utilize Rest connector to run it. There is a walkthrough of everything you need to do it in my blog post (just make sure you read carefully all links and configuration steps as there is lots of it)

Links:

intro:https://community.qlik.com/t5/Qlik-NPrinting-Discussions/How-to-use-Qlik-NPrinting-APIs-inside-a-Qli...

pdf:https://community.qlik.com/t5/Qlik-NPrinting-Discussions/How-to-use-Qlik-NPrinting-APIs-inside-a-Qli...

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

cheers

 

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.

View solution in original post

parevrac
Contributor III
Contributor III
Author

Thanks for this - looks like i need ti try and get  REST connector as it is not included in our QlikView 12 installation

View solution in original post

9 Replies
Lucas_Gatling
Support
Support

Do you have any the highlighted boxes checked in your LDAP import?

 

If the issue is solved please mark the answer with Accept as Solution.
parevrac
Contributor III
Contributor III
Author

Lucas, Yes i have all these boxes checked

Lech_Miszkiewicz
Partner Ambassador/MVP
Partner Ambassador/MVP

I believe this process will not delete users which were not created by import task, is that the behaviour you are experiencing?

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.
parevrac
Contributor III
Contributor III
Author

Thanks Lech,  

Users can only be created by the import task as i want this to be as automatic as possible. The user import runs weekly and the users that were not deleted appear to have been created in previous weeks to the email report run so they must have met the criteria for being included in the distribution in previous weeks 

Ruggero_Piccoli
Support
Support

Hi,

I confirm that an import task can delete only users previously created by the same import task. You can delete the others manually, via APIs https://help.qlik.com/en-US/nprinting/May2021/APIs/NP+API/index.html?page=63 or by using the same import task that created them. If you deleted the import task that created the users you can only use one of the first two suggested methods.

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.
parevrac
Contributor III
Contributor III
Author

Thanks Ruggero

How do i access and use NPrinting API - is it a separate application?

Regards

Paul

Lech_Miszkiewicz
Partner Ambassador/MVP
Partner Ambassador/MVP

Hi @parevrac ,

Ruggero has provided you a link to available api and documentation. You need to write custom script/code to use it in a software of your choice. you can create your own webapp or maybe use custom Qlik Sense script and utilize Rest connector to run it. There is a walkthrough of everything you need to do it in my blog post (just make sure you read carefully all links and configuration steps as there is lots of it)

Links:

intro:https://community.qlik.com/t5/Qlik-NPrinting-Discussions/How-to-use-Qlik-NPrinting-APIs-inside-a-Qli...

pdf:https://community.qlik.com/t5/Qlik-NPrinting-Discussions/How-to-use-Qlik-NPrinting-APIs-inside-a-Qli...

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

cheers

 

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.
parevrac
Contributor III
Contributor III
Author

Thanks for this - looks like i need ti try and get  REST connector as it is not included in our QlikView 12 installation

Frank_S
Support
Support

@parevec
When you have a moment, please mark responses as Accepted Solution - if any - which helped you to come to your conclusion and next steps.

 

Kind regards...

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