Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi,
I followed this below link but not sure how to add multiple tasks in the 'vPublshTaskURL'
If anyone has triggered multiple nprinting tasks from Qlik Sense script , please share the URL format.
I tried like below but its throwing invalid ID error -
Let vTaskId = '$(vTaskId1)'&','& '$(vTaskId2)' &','&'$(vTaskId3)'&','&'$(vTaskId4)';
let vPublshTaskURL = 'https://nprint.premisehealth.com:4993/api/v1/tasks/'&'$(vTaskId)'&'/executions';
//Exit Script;
DROP TABLE RestNPTasksMasterTable;
//********************************************************
//NP POST Task execution
//********************************************************
LIB CONNECT TO 'NPrinting POST REST Connector';
RestNPTaskTriggerTable:
SQL SELECT
"__KEY_data"
FROM JSON (wrap off) "data" PK "__KEY_data"
WITH CONNECTION( URL "$(vPublshTaskURL)", HTTPHEADER "cookie" "$(vCookie)");
[_post_items]:
LOAD [__KEY_data] AS [__KEY_data]
RESIDENT RestNPTaskTriggerTable
WHERE NOT IsNull([__KEY_data]);
DROP TABLE RestNPTaskTriggerTable;
Thanks in advance!!!
There is a QVF in this article (scroll to the bottom of the page) which contains code allowing you to execute all Publish tasks in a Single NPrinting App.
https://support.qlik.com/articles/000059611
Feel free to use my library to do this. It makes the setup much easier and works "quite out of the box"
cheers
Lech
https://nprintingadventures.com/2019/04/08/nprinting-api-qlik-rest-subroutines/
There is a QVF in this article (scroll to the bottom of the page) which contains code allowing you to execute all Publish tasks in a Single NPrinting App.
https://support.qlik.com/articles/000059611
Feel free to use my library to do this. It makes the setup much easier and works "quite out of the box"
cheers
Lech
https://nprintingadventures.com/2019/04/08/nprinting-api-qlik-rest-subroutines/