NPrinting: Is there a way to delete all the reports in the queue automatically?
Article Number: 000079141 | Last Modified: 2019/07/17
Description
Is there a way to delete all the reports in the NPrinting Reports queue automatically?
Environment: Qlik NPrinting
Cause
Feature request.
Resolution
The private API can be used as there is no public API for this. By calling the https://nprintingserver:4993/npe/reports/<id of report>?count=10&orderBy=title&page=1 endpoint or possibly https://nprintingserver:4993/npe/reports/<id of report> for short, the reports queue can be cleared. For example, the following is just an example that is untested but conveys how it could be called:
This will delete a report, so the goal would be to get all the report ids, iterate over those ids, and then call delete on each to clear out the queue. Of course, the downside to this is that it would need to be tested with each upgrade since any changes to this API will break the code as it is not public
Get Answers
Find Answers
Qlik Community
Collaborate with over 60,000 Qlik technologists and members around the world to get answers to your questions, and maximize success.
Experiencing a serious issue, please contact us by phone. For Data Integration related issues please refer to your onboarding documentation for current phone number.