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: 
pradeepkishore
Contributor
Contributor

NPrinting CLI Tasks : GET-Tasks - list of all currently executing Tasks

HI All,

I am trying to get the list of all executing task and export/email the same to support DL.

Using the  Git QlikNPrinting CLI , i am able to setup most of the tasks like getting the list of users/filter/tasks created etc.

But is there is any way we can have the number of currently executing Task details pulled using the API.

https://github.com/QlikProfessionalServices/QlikNPrinting-CLI

Labels (2)
1 Solution

Accepted Solutions
Ruggero_Piccoli
Support
Support

Hi,

You have to implement that feature on your software side. The Qlik NPrinting APIs does only what is documented in https://help.qlik.com/en-US/nprinting/May2021/APIs/NP+API/index.html?page=0. So you can get the list of publish tasks by using https://help.qlik.com/en-US/nprinting/May2021/APIs/NP+API/index.html?page=54, you can filter them and count by Status in your custom software.

If you have questions about the third party software you linked, I suggest to contact the developers.

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.

View solution in original post

4 Replies
Ruggero_Piccoli
Support
Support

Hi,

You have to implement that feature on your software side. The Qlik NPrinting APIs does only what is documented in https://help.qlik.com/en-US/nprinting/May2021/APIs/NP+API/index.html?page=0. So you can get the list of publish tasks by using https://help.qlik.com/en-US/nprinting/May2021/APIs/NP+API/index.html?page=54, you can filter them and count by Status in your custom software.

If you have questions about the third party software you linked, I suggest to contact the developers.

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.
pradeepkishore
Contributor
Contributor
Author

The API model give details about  listing all the tasks created on the NPrinting side, and then to trigger the custom task from CLI. Thats all looking good, need assistance if there is any specific way i can populate/export the view for Currently running Task - similar to what we have from Nprinting web - server:4993/#/tasks/execution tab.

The real time tracking for all active/ running task , from CLI inorder to have them automated to be transmitted. For Web console this is already set, ask is to get the same list from CLI/API call.

 

Ruggero_Piccoli
Support
Support

Hi,

My suggestion it to learn how to use the APIs you inserted in the screenshot by running them manually for example with POSTMan. Then you need the help of a software developer that creates a custom software for reading JSON data from Qlik NPrinting APIs and use them.

You can also evaluate to use the Qlik REST Connector https://help.qlik.com/en-US/connectors/Subsystems/REST_connector_help/Content/Connectors_REST/REST-c...

Let us know if you have more specific question on the mentioned APIs.

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.
Lech_Miszkiewicz
Partner Ambassador/MVP
Partner Ambassador/MVP

Hi,

methods you have shown on the screenshot are all utilized here in qvs script using rest connector. There is not much info you will get from there though. You will be able to get a current status, advancement in % and thats about it. So I am not sure if this is sufficient for what you want it for. 

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

I am not going to comment on CLI though as I have not written it and have no experience with it..

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.