Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Good Day
I have a "trigger" qvw which automates an NPrinting job, i.e. kicks off the generate recipients task and then kicks off the publish report task.
As the import task wasn't supported by the API this step remains a manual NPrinting trigger. However, I would like to have this included in the automation.
I read that the June 2019 version of NPrinting supports import tasks on the API:
NPrinting June 2019 now officially supports import tasks. It has achieved this by extending support of the existing task API to included import tasks as well with the same endpoint. The following is an example of the endpoint to use for the public API:
POST /api/v1/tasks/{taskid}/executions
However, I am not able to find any documentation related to this. Also when I get the task list using the API only publish tasks are included.
Can anyone assist?
Thanks
Hi,
You are right, I could not get import tasks listed when executing GET call.
However what I tried was to execute task using POST method and instead of {id} I put id (I hardcoded it), which I derived from URL address when looking at Import task in management console and it all worked ok.
Screenshots below:
I am attaching also short video of execution which shows following obvious steps:
NPrinting.qvs library is available on my blog: https://nprintingadventures.com/ under this post: https://nprintingadventures.com/2019/04/08/nprinting-api-qlik-rest-subroutines/
This library is my private project so use it at your own risk, but I think it can simplify a lot in task chaining using API.
hope this helps - cheers
Hi,
You are right, I could not get import tasks listed when executing GET call.
However what I tried was to execute task using POST method and instead of {id} I put id (I hardcoded it), which I derived from URL address when looking at Import task in management console and it all worked ok.
Screenshots below:
I am attaching also short video of execution which shows following obvious steps:
NPrinting.qvs library is available on my blog: https://nprintingadventures.com/ under this post: https://nprintingadventures.com/2019/04/08/nprinting-api-qlik-rest-subroutines/
This library is my private project so use it at your own risk, but I think it can simplify a lot in task chaining using API.
hope this helps - cheers
by the way... The only official documentation regarding API is on https://help.qlik.com. The latest is: https://help.qlik.com/en-US/nprinting/June2020/Content/NPrinting/Extending/NPrinting-APIs-Reference-...
however it does not mention anything on how to programatically obtain import task id.