Creating Subfolders in SharePoint 2010 Document Library Using NINTEX Workflow

Introduction

In this article you will see how to create subfolders in a SharePoint 2010 Document Library using NINTEX workflow. I have created a Document Library named “Source” in which the workflow is created when the workflow is executed for the document in the “Source” library, a subfolder will be created in the “Destination” Document Library. This is just an example to explain creating subfolders in the Document Library.

Workflow Design

Workflow Design

Create an item action to create subfolders in SharePoint 2010 Document Library.

Folder workflow

  1. Navigate to the Source Document Library.
  2. Click on the Library tab and then click on Workflow Settings.
  3. Click on Create a Workflow in Nintex Workflow.

    Workflow in Nintex Workflow

  4. Click on Cancel.

    Cancel

  5. Drag and drop the Create item action from Libraries and lists section.

    Libraries and lists

  6. Click on Configure from the drop down list in the Create item action.

    Create item

  7. Enter the values as shown below.

    values

  8. Click on Save.

Publish the workflow

  1. Click on the Publish button in the ribbon interface.

    Publish button

  2. Ensure the Title is set; optionally you can set the values for Description and Change Comments.

    Change Comments

  3. Click on the Submit button.

    Submit button

  4. The workflow is published successfully.

    published successfully

Test the workflow

  1. Navigate to the Source Document Library.
  2. Select the document and then click on Workflows in the ribbon interface.

    Workflows in the ribbon interface

  3. Click on Folder workflow and then click on the Start button.

    Start button

  4. After a few minutes the workflow status will be changed to Completed.
  5. Navigate to the “Destination” Document Library; you will see the subfolders as shown below. If the folder exists then it will not create. Destination [Library] =>FolderA [Folder] => FolderA1 [Sub Folder] =>FolderA11 [Sub Folder].

    Destination

Summary

Thus in this article you saw how to create subfolders in a SharePoint 2010 Document Library using a NINTEX workflow.