Click here to Skip to main content
15,867,594 members
Articles / Web Development / ASP.NET

8 Steps to Create Workflows using SharePoint Designer

Rate me:
Please Sign up or sign in to vote.
4.57/5 (5 votes)
13 Apr 2009CPOL4 min read 179.5K   54   9
8 Steps to create workflows using SharePoint designer

Table of Contents

Introduction

Workflows are now an integral part for any project. You can build a SharePoint work flow using the available templates, SharePoint designer and Visual Studio 2005 / 2008. This tutorial will mainly concentrate on workflow creation using SharepPoint designer. We will walk through the basic 8 steps needed to create workflows using SharePoint designer.

8 Steps to Create Workflow using SharePoint Designer

SharePoint designer helps us to create workflows and attach the workflows to a content type like list, document, etc. In other words, SharePoint designer creates workflows and publishes the workflow on the SharePoint server site.

Image 1

To understand it better, we will build a simple workflow of completed and incomplete tasks. We will create two lists, one is the incomplete tasks and the other the completed tasks. The workflow will flow something like this:

  • User will create a task and enter the status of the task.
  • If the task is incomplete, nothing will happen.
  • Once the task is marked as complete, the task will be copied from incomplete task list to completed task list.
  • The task will be deleted from the incomplete task list.

Image 2

So let’s understand the eight important steps we will need to create the above workflow using SharePoint designer.

Step 1

Create a team site using the SharePoint team site template.

Step 2

Create two task lists, one is incomplete task list and the other completed task list.
To create task list, click on site action -> Create: Add a new library list -> create a task.

Step 3

Start the SharePoint designer.

Image 3

Step 4

Open the site in your SharePoint designer using click on file -> open site.

Image 4

Step 5

Go to workflows by clicking on file -> new -> SharePoint content and click ok as shown in the below figure:

Image 5

Step 6

This is an important step. In this step, we define two important things. The first is this workflow will be attached to which list. Currently we have attached the workflow to incomplete tasks list. Second we need to define the events on which the workflow should be activated. For the current scenario, we have considered two events; one when the item is created and the second when the item is updated.

Image 6

Step 7

This is one more crucial step where we need to define on what condition the workflow will execute and what action should take place if the condition is true. So when a task status is completed, two actions will take place. First the task will be copied from the incomplete task list to the completed task list. Second the task is deleted from the incomplete task list.

Image 7

Once you click finish, you can see the workflow created in the SharePoint designer. This workflow is also published to the SharePoint server,

Image 8

You can see if the workflow is associated with the incomplete task list. Go to incomplete tasks -> Settings -> List settings -> Workflow settings. You can see that the workflow is attached to the incomplete task list.

Image 9

Step 8

Ok, now it’s time to see the workflow in action. So go to incomplete task list and create a task with status completed.

Image 10

Once you click ok, you see the task for some seconds in the incomplete tasks list and then the task is copied to the completed task list and deleted from the incomplete task list.

Image 11

Previous SharePoint QuickStart FAQ

  • Quick Start FAQ Part 1: 11 basic FAQ questions, a must for every new comer. It's the basic Quick Start FAQ tutorial which talks about what is SharePoint, WSS, MOSS, Site/Site collection, Virtual Path provider and then ends with explaining SitePages and Application pages.  
  • Quick Start FAQ Part 2: This is the second part in the series which explains the ready made functionalities, custom pages, deploying/activating/deactivating features and lot more. 
  • Quick Start FAQ Part 3: This is the third part of the series in which we have explained page templates, page instances, WSS model, understand safe mode processing and deploy custom controls. 
  • Quick Start FAQ Part 4: This series is all about webparts, webparts and webparts. 
  • Quick Start FAQ Part 5: This series will mainly concentrate on custom columns, content types and document list library. I am sure once you read this article, your thinking of how SharePoint organizes document centralization will change.

For further reading do watch the below interview preparation videos and step by step video series.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Architect https://www.questpond.com
India India

Comments and Discussions

 
QuestionHow to use multiple steps in sharepoint designer workflow Pin
bpnanu2-Jul-13 23:49
bpnanu2-Jul-13 23:49 
Generalsharepoint module problem Pin Pin
saiprakashsai19-Apr-10 20:43
saiprakashsai19-Apr-10 20:43 
Generalstep 7 Pin
kx250f3726-Mar-10 3:20
kx250f3726-Mar-10 3:20 
QuestionAutomatic WorkFlow is not working. Pin
pbk_baskaran21-Dec-09 0:47
pbk_baskaran21-Dec-09 0:47 
GeneralDeveloping custom workflow action is very easy Pin
itsaranga6-Nov-09 8:32
itsaranga6-Nov-09 8:32 
QuestionHi Siva Pin
Akash1228-Jul-09 23:31
Akash1228-Jul-09 23:31 
GeneralHi Siva Pin
modiyam28-Apr-09 8:24
modiyam28-Apr-09 8:24 
GeneralNice Article Pin
Member 358086021-Apr-09 4:30
Member 358086021-Apr-09 4:30 
GeneralTask Approval and Rejection Pin
saanj14-Apr-09 2:49
saanj14-Apr-09 2:49 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.