I have a flow which starts with folder input. Within the folder is a subfolder called "Supplements". The flow routes all files within the supplements folder to another folder where they are inserted into any files submitted in the job.
The flow works great when there is a single supplement file in the flow. In the case where two or more supplements are included, I am trying to route the files to another folder to merge them into a single file and return back to the flow. I am having trouble counting the files within the folder so that jobs with 2 or more supplements go on one route and the jobs with single supplement files go another route. Suggestions?
Count files in flow folder
Re: Count files in flow folder
You have the variable Job.FileCount you can play with.
-
- Newbie
- Posts: 14
- Joined: Fri Nov 19, 2021 8:15 pm
Re: Count files in flow folder
I did try that but Job.FileCount only counts files in a job and I have dismantled the job into individual files so it always returns "1".
Re: Count files in flow folder
Can't you use Job.FileCount before you dismantle and add the count number as Private Data to the job?
- JimmyHartington
- Advanced member
- Posts: 309
- Joined: Tue Mar 22, 2011 7:38 am
Re: Count files in flow folder
Could an option be to always move the supplements folder til be merge as a pdf. One file still should give a pdf.
And more files would just get merged.
And more files would just get merged.
-
- Newbie
- Posts: 14
- Joined: Fri Nov 19, 2021 8:15 pm
Re: Count files in flow folder
Thanks for the feedback. I ended up putting the supplements and the files that need them in separate folders and using the Sort configurator to send them along different paths where I could use the Files.Count data to count files in the folders.