Hello to all.
I tried to make the flows, but I can not find a way to create folders.
For example, I have a folder (named test) containing 4 files pdf into one job.
How do I create 3 subfolders (named sub1, sub2, sub3) and place the files in one of these?
Thank you for the help you can give me.
Create folder in job
Re: Create folder in job
You have to use "Archive hierarchy" to do that. When a job hits an "Archive hierarchy" element, the path that is defined in the variable [Job.Hierarchy] will be used to create the desired folder structure. In other words, what you have to do is to make sure that the value of that variable is what you want it to be before the job arrives in "Archive hierarchy".
There are two ways in which to do that:
- Set "Attach hierarchy info" to "Yes" on the elements that support this (Submit hierarchy, Receive FTP, folder elements, ...).
- Use "Set hierarchy path", which allows the use of variables.
Final caveat: "Archive hierarchy" creates the structure of subfolders up to the level defined in the "Subfolder levels" property. The default is 1, meaning that however many levels you have added to the job's hierarchy, only the first level will be used. Increase the value when necessary.
There are two ways in which to do that:
- Set "Attach hierarchy info" to "Yes" on the elements that support this (Submit hierarchy, Receive FTP, folder elements, ...).
- Use "Set hierarchy path", which allows the use of variables.
Final caveat: "Archive hierarchy" creates the structure of subfolders up to the level defined in the "Subfolder levels" property. The default is 1, meaning that however many levels you have added to the job's hierarchy, only the first level will be used. Increase the value when necessary.