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

Add task name and execution time to destination folder

Hello community,

Is there a way to automatically split our destination folder on nPrinting by task name (or even task id) and timestamp?

Something like destination folder: C:\Distribution\%%task_name%%\%%timestamp%% where %%task_name%% will be the name of the task launched on nPrinting and %%timestamp%% the execution time of it.

We have a lot of reports/tasks we would like to store in different folders without hardcoding a folder for each tasks.

Thank you for your answer.

Labels (2)
1 Solution

Accepted Solutions
Lech_Miszkiewicz
Partner Ambassador/MVP
Partner Ambassador/MVP

To add to this: in my projects most of the time i use API and my above answer combined with API use could give you automatic way of defining destinations: https://nprintingadventures.com/2019/04/08/nprinting-api-qlik-rest-subroutines/

 

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

3 Replies
Lech_Miszkiewicz
Partner Ambassador/MVP
Partner Ambassador/MVP

Hi. 
short answer is no-there is no out of the box property telling you which task you are running. 

Workaround:

Use Qlik variable: you could create in all your qlik sense app variable which could be set as a filter for each task (then you have 1 destination) and rest is managed via that variable-i don't see it much different to hardcoding destinations but that is the only similar way to achieve what you want. 

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

To add to this: in my projects most of the time i use API and my above answer combined with API use could give you automatic way of defining destinations: https://nprintingadventures.com/2019/04/08/nprinting-api-qlik-rest-subroutines/

 

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

Thank you for your answer, I will study this.