Click here to Skip to main content
Click here to Skip to main content

8 Steps to Create Workflows using SharePoint Designer

By , 13 Apr 2009
 

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.

I have published some videos on SharePoint, WCF, WPF, WWF, design patterns, UML, FPA, Enterprise blocks, etc. You can watch the videos here. You can download my 400 .NET FAQ EBook from here.

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.

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.

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.

Step 4

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

Step 5

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

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.

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.

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

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.

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.

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.

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.

License

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

About the Author

Shivprasad koirala
Architect http://www.questpond.com
India India
Member

I am a Microsoft MVP for ASP/ASP.NET and currently a CEO of a small
E-learning company in India. We are very much active in making training videos ,
writing books and corporate trainings. Do visit my site for 
.NET, C# , design pattern , WCF , Silverlight
, LINQ , ASP.NET , ADO.NET , Sharepoint , UML , SQL Server  training 
and Interview questions and answers


Sign Up to vote   Poor Excellent
Add a reason or comment to your vote: x
Votes of 3 or less require a comment

Comments and Discussions

 
You must Sign In to use this message board.
Search this forum  
    Spacing  Noise  Layout  Per page   
Generalsharepoint module problem Pinmembersaiprakashsai19 Apr '10 - 20:43 
hai this is kash working as sharepoint dveloper in basic level.
 
question:What is the use of master page? Can you tell me , I want to put the Dropdown control in
 
master page, in sharepoint stepwise.
 

do u know above this answer plz forward my email:kashsoft1@gmail.com
Generalstep 7memberkx250f3726 Mar '10 - 3:20 
On step 7 which action should I select for step 1. I selected the copy item.

when I click on "this list", I'm prompted and select the Completed tasks. but what do I select for field and value.

Also what is need to get the 2nd part of the 1st action to perform the "then delete item in incompleted task"?
QuestionAutomatic WorkFlow is not working.memberpbk_baskaran21 Dec '09 - 0:47 
Hi,
 
With your articles help, I have done all the steps for Custom workflow creation. But Automatic workflow is not working. Any suggestion for this issue is appreciated.
 

 
Regards,
Baskaran
GeneralDeveloping custom workflow action is very easymemberitsaranga6 Nov '09 - 8:32 
SharePoint Workflow Actions for Designer in Visual Studio
QuestionHi SivamemberAkash1228 Jul '09 - 23:31 
I have made a workflow in sharepoint designer to update a list eg.Emp when in another list eg. dept an item is changed. In the same workflow i want to update the same item added in dept list to database as well. Thanks a lot in advance.
GeneralHi Sivamembermodiyam28 Apr '09 - 8:24 
Thanks for sharing your knowledge...! its a pretty good article about workflows,
 
I got a situation like, having a custom list with couple of columns, one of them is enddate, and need to send E-mail remainder before 20 or 30 days to enddate,
 
If you could get a chance to look into it, can you please suggest me the approach to implement this,
 
currently i am trying with Timerjobs, but i am not sure whether this is the right approach,
 
Thanks in advance..!
 
Nageswar
GeneralNice ArticlememberMember 358086021 Apr '09 - 4:30 
Thanks
This is Best Article about workflow
GeneralTask Approval and Rejectionmembersaanj14 Apr '09 - 2:49 
Hi Shiv,
First of all thanks a ton for sharing your knowledge with us over years. I am following your articles since few years. i have one doubt regarding this topic. How can I add approval and rejection features to this workflow? Can u please help me to understand about how to achieve it as I am quite new to WSS Workflows.
 
Once again thanks.
 
Either you love IT or leave IT...

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

Permalink | Advertise | Privacy | Mobile
Web04 | 2.6.130523.1 | Last Updated 13 Apr 2009
Article Copyright 2009 by Shivprasad koirala
Everything else Copyright © CodeProject, 1999-2013
Terms of Use
Layout: fixed | fluid