You are viewing limited content. For full access, please sign in.

Question

Question

Workflow to Create Folders

asked on October 22

This may be a novice question, but can anyone enlighten me on what activities are needed to set up a Workflow to run once and create folders ranging from 1900 to 2025?  The Workflow will not be reading any metadata -- I simply want it to create these folders, so I don't have to do it manually.  I have yet to create a successful Workflow for this task.  Thanks in advance!

0 0

Answer

SELECTED ANSWER
replied on October 22 Show version history

(Doh, Jason beat me by 20 seconds laugh) Something like this should do it.

Start at year 1989 and then loop 126 times and calculate the next year and make the folder

3 0
replied on October 22

I had a feeling someone was just about to post lol

This is definitely a more concise version. Adding the iterator to the year saves the trouble of having to update a separate token.

1 0

Replies

replied on October 22 Show version history

Super easy. Barely an inconvenience. I build little workflows like this all the time, especially when I have projects that require a lot of new folders, and novice questions are where we all start!

There's a few ways you could do this, but they'd all involve some sort of loop activity like Repeat, or For Each Value.

Repeat is probably easiest for what you're doing, so to start, we'll create a token with Assign Token Values to store the year, and give it an Integer or Number tag, then set the default value to the first year in your range.

 

Next, we'll add a repeat loop that stops when the Year token reaches your cutoff year. We'll set that to repeat as long as the Year token is less than 2025.

We also need to increase the iteration limit since you need more than the default of 100, and make sure it is set to evaluate the condition after running so you include 2025 (or you could set the limit to 2026 and evaluate before it runs).

 

Next, inside of that repeat, you want to create your folder using the path you want, and the Year token as the name.

 

Finally, we add a Token Calculator that will increment the Year value by one, followed by another Assign Token values that updates the Year token with the new value.

 

And the end result should look something like this

Once you get the hang of this, it doesn't take much more to start doing things like adding permissions after you create the folder.

1 0
replied on October 27

Thank you, Jason & Miruna!

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.