[[UPDATE: This is now part of a series of posts, where I show how to build a simple project/case management solution, with a no-code approach, using SharePoint 2010 Designer Workflows. Check out my other posts to learn more.]]
[ProjectCasemanagement solution]
Case
I have a list with names of projects. Whenever I create a new item on my list, I want the SharePoint 2010 Designer Workflow to create a folder for the project and several subfolder beneath the projectfolder. I’m using Office 365 as my platform, so there is a no-code requirement. In this case I want the rot-folder to be named “Title (ListID)”.
Listname: List A
Libraryname: DocLib
Solution: Enter the SharePoint 2010 Designer Workflow
- Create a SharePoint list workflow in List A
- Set workflow to start automatically upon new item
- Create a step to name variables (Looks nice and makes it easier to edit later on – optional)
- Create variable Vcase and set the value to [%Current Item: Title%] ([%Current Item:Id%])
- Create variable Vsubfolder1 and set the value to Subfolder 1 (Optional but makes it easier to edit later on)
- Create a step to create new element (This is the root folder)
- Select “DocLib” as list to create item in
- Select “Action – Create listelement”
- Add “Id for contenttype” – set in to Folder
- Edit “Path and name (*)” – set it to [%Variable:Vcase%]
- Create a step to create new element (This is the subfolder)
- Select “DocLib” as list to create item in
- Select “Action – Create listelement”
- Add “Id for contenttype” – set in to Folder
- Edit “Path and name (*)” – set it to [%Variable:Vcase%]/[%Variable:Vsubfolder1 %]
- Repeat step 5 and 7 for each subfolder you wish to create.
I’ve tried this method on SharePoint Online (Office 365), with 1 root-folder and 3 sub-folders. I then created 100 lines in “List A” and waited 2 minutes for the folders to be created. Worked perfectly.
[Office 365]
Tweet me
- Creating folders and sub-folders using SharePoint 2010 Designer Workflow – Click to tweet
- I just learned how to create automatic folders and subfolders in SharePoint – Click to tweet
- Check out how to create folders using nothing but SharePoint Designer and no code – Click to tweet
Leave a Reply