Hi all,
how can input the documents destination in the move document smart service process node without hard cording the folder name, depending on todays date the document will be sent to a specfic folder. for examle I have a parent folder called Documents. inside I will 4 subfolders, Period 1, Period 2 , Period 3, Period 4. but these will be created throughout, so for now I only have Period 1. If today is a date is january 2 t will go to period 1. but when we reach the date of march 1 it will create the second folder period 2, and then any documents after this date I want them to go to period 2 folder and so on.
What is the best way to approach this?
thanks in advance
Discussion posts and replies are publicly visible
It'd be slow to set up all of the rows you need but once done it's done.
3. The you simply derive the Year and Month from now() and use those values to return the relevant folder as input to your smart service
thanks for responding! Can you explain how could I do the one-off utility process model for the subfolders?
Create a nested loop. In the outer loop seed your Start Year (e.g. 2023) and have it loop through until your End Year. For example you may start in 2023 and end in 2123 (100 years!).
Within each iteration of the Year you'd:
So your outer loop may look like this:
and your inner loop (contained in the sub-process) like this:
This would run sequentially, and there are other ways to achieve the same outcome faster (you could spawn all 4 Create Period processes concurrently but probably not worth the effort)