cancel
Showing results for 
Search instead for 
Did you mean: 
darrel_richards
Nintex Newbie

create folder with nested subfolders

Jump to solution

I've had a search for nested folders and create subfolders but no joy. I'm new to Nintex and not managed to guess my way to a solution so far. I can do this with SharePoint Designer but would like to know the Nintex solution. I appreciate there are more sophisticated ways of using metadata in place of folders but I'm trying to get new users started with something familiar.

I want the simplest way to do the following.

1. Create a folder with subfolders

2. The subfolders need to be flexible, so either A, B, C or 1, 2, 3. It doesn't matter other than they need to be able to be changed by the user if required.

Scenario: case worker needs a folder for a new case. The case would typically have 8 subfolders. Some have 9, some have 7.

User runs a workflow to create case file 123 and it gets created with 8 subfolders.

Process changes 3 months down the line where the subfolders have slightly different names. Ideally user could change the name of the folders that get creating going forward until the next change.

Grateful for any help.

Labels: (2)
0 Kudos
Reply
2 Replies
andrewg
Nintex Newbie

Re: create folder with nested subfolders

Jump to solution

It sounds like you can use the create item action to create an item using the content type of Folder in a list with a defined name or index. Then use a loop action around the create item and stop on a condition (maybe where number is equal to 8).

loop.PNG

  • The loop is configured to stop when numIndex variable is equal to 8. Defaulted at 0.
  • The create item in another site is used because it allows you to define the path where to create the folder.
  • You will need to keep up with the new path through each loop using a buildstring. I imagine the folder name you are creating could be based off of the index (1\2\3\4...) or you can use a separate variable to manage the name of the folder if it was not a number.
  • Finally a math operation to add to the index to count up to 8.

This could provision the initial folder structure. Then the user can use SharePoint list management to update the names of the folders if they like.

Reply
darrel_richards
Nintex Newbie

Re: create folder with nested subfolders

Jump to solution

Looks like something for me to explore. Many thanks Andrew.

0 Kudos
Reply