Create Folders under document library: Nintex Workflow

I spent almost a day to figure this one out. Lot of people they might say folders are not good for SharePoint. In some cases they are right but not all the time. Lets take this business scenario when you dealing with SharePoint 2013 that to with Metadata navigation settings + Skydrive Pro sync process???

I know its kind of makes sense to go with folders at that point of time right……? Yes. Found a nice post by John Scott

Here I’m going through couple of ways to do it to make it happen.

1. SharePoint designer workflows

2. Nintex 365 workflows

For now I’m skipping “SharePoint designer workflows”, lets concentrate on “Nintex 365 workflows”.

Nintex 365 workflow to create folders in a document library:

There are 2 ways to accomplish our task. 1 cool thing about both the approaches is, first it will check for the folder with the specified name exists or not. If not it will try to create the folder. If folder already exists, it won’t delete or try to create, simple ignores the process.

1. In NIntex workflows, we have an option called as – CREATE ITEM. So configure that accordingly if you are trying to create a top level folder.

Create Folder Nintex 2

2. In Nintex workflows, we have an option called as – CALL WEB SERVICE. So configure that accordingly if you are trying to create a folder/sub folder. In the screenshot below, RootFoler attribute in ‘Batch’ is very important.

Create Folder Nintex 1

For example: If your library is XYZ and trying to create ‘Folder1’, below are the params to web service

  • destinationLib – XYZ
  • rootFolder – /XYZ
  • tempPath – Folder1

same way if you are trying to create a subfolder called ‘Folder1Level1’ under ‘Folder1’, below are the params to web service

  • destinationLib – XYZ
  • rootFolder – /XYZ/Folder1
  • tempPath – Folder1Level1

Hope it helps some of you folks……Happy WORKflowing……..