How to Create a List in SharePoint 2010 Using NINTEX Workflow

Introduction

We will be creating a new list by calling the web service _vti_bin/lists.asmx. I have created a custom list named “List Templates” with the following values. Please refer to SPListTemplateType enumeration for list templates and their IDs.

List Templates

I have created a custom list named “Manage Lists” with the following columns.

Manage Lists

The List Template column is a lookup column from the List Templates list and Template ID is a projected field.

Create list workflow

  1. Navigate to the Manage Lists list.

  2. Click on the List tab and then click on Workflow Settings.

  3. Click on Create a Workflow in Nintex Workflow.

    Create a Workflow in Nintex Workflow

  4. Click on Cancel.

    Click on Cancel

  5. Drag and drop the Call web service action from the Integration section.

    Integration

  6. You will see the warning symbol in the workflow action, clicking on that will show the following warning message.

    warning message

  7. Click on Configure from the drop down list in the Call web service action.

    Call web service action

  8. Click on the Insert Reference button for the URL column and then click on the Common tab. Select Web URL and then click on Ok.

    Select Web URL

  9. Append /_vti_bin/lists.asmx in the URL column.

  10. Enter the User Name and Password to call the web service and then click on the Reference button.

  11. Click Ok.

    Click on Ok

  12. All the web service methods will be populated. Select AddList web method that will be used to create a new list.

    AddList

  13. The Web Service Input section will be populated for passing the input values to the web method.

  14. Click on the Insert Reference button for the listName column and then click on the Item Properties tab. Select Title and then click on Ok.

  15. Click on the Insert Reference button for the description column and then click on the Item Properties tab. Select Description and then click on Ok.

  16. Click on the Insert Reference button for the templateID column and then click on the Item Properties tab. Select Template ID and then click on Ok.

    Select Template ID

  17. Click Save.

Publish the workflow

  1. Click the Publish button in the ribbon interface.

    ribbon interface

  2. Make sure the Title is set. Optionally you can set the values for Description and change the Comments.

    set the values for Description

  3. Click on the Submit button.

    Click on Submit button

  4. The workflow is published successfully.

    workflow is published

Test the workflow

  1. Navigate to the Manage Lists list.

  2. Create a new item.

    Create a new item

  3. Select the item and then click on Workflows in the ribbon interface.

    click on Workflows

  4. Click on the Create List Workflow workflow and then click on the Start button.

  5. After a few minutes the workflow status will be changed to Completed.

    workflow status

  6. The list is created successfully.

Summary

Thus in this article you saw how to create a new list in SharePoint 2010 using a NINTEX workflow.

Up Next
    Ebook Download
    View all
    Learn
    View all