Click here to Skip to main content
15,891,657 members
Articles / Visual Studio
Tip/Trick

Step by Step Approach to Create a Visual Studio SharePoint Workflow (Sequential)

Rate me:
Please Sign up or sign in to vote.
4.80/5 (8 votes)
12 Jul 2013CPOL1 min read 57.2K   5   2
Create a Visual Studio SharePoint Workflow (sequential).

First we need to install and Configure Workflow Manger. You can install it using Web Platform Installer

image

You can find complete guide here (Prabath’s Blog).

image

image

image 

image

select the options that you need to run the workflow

  • Manual
  • Item Created
  • Item Changed

As a sample WF I’m going to get the “Age” Column in the item and Write it to log and update a column using a message.

image

Since we need to look the Age Column, i added the LookUpSPListItem to the sequence.  In the LookUpSPListItem you need to set properties to currentitem and currentlist as well as valuable you need to retrieve properties (You can change these on right side property window).

Then by clicking get properties VS generates a GetDynamicValueProperties action. In there you need to select the variable as the Source and specify properties you need to retrieve.

 image

Then drag and drop a WriteToHistory Action to the sequence. here you can go to properties and specify the message you need to log to history.

Then you can insert UpdateListItem with the Property and variable you want.

And ultimately you can deploy the workflow to your server.

image

I will put another set of posts by saying how each and every workflow actions works. This post is only touching overall process (steps) to deploy a workflow. :D

License

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


Written By
Sri Lanka Sri Lanka
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions

 
Question[My vote of 1] VS2012 missing templates of sharepoint 2013 workflow Pin
itz_venki20-Jan-14 21:37
itz_venki20-Jan-14 21:37 
QuestionVS2012 missing templates of sharepoint 2013 workflow Pin
itz_venki20-Jan-14 21:37
itz_venki20-Jan-14 21:37 

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.