Microsoft SharePoint Designer Workflow
Workflows are now an important part of any project. We can develop a Microsoft SharePoint Workflow using the available templates, SharePoint designer and Visual Studio. In this article, we will mainly focus on workflow creation using Microsoft SharePoint Designer.
Advantages
- Basic workflow can be implemented by trained users
- Relatively quick to implement for low complexity workflow
Disadvantages
- No built-in source control
- Difficult to deploy to other environments
- Sequential workflow only
Workflow created in three ways using Microsoft SharePoint designer:
- List workflow
- Reusable workflow
- Site workflow
Note: In this SharePoint for dummies tutorial, you will learn simple basic workflow, where current date is set in list item through SharePoint designer. I have used SharePoint Designer 2010 for implementation purposes, but the process will remain the same if you use SharePoint Designer 2013.
Step 1: Create a List for SharePoint workflow
- Login with SharePoint site.
- Navigate to Site and Click on “Settings” option and then click on “site contents” option.
![SharePoint Site contents](/KB/sharepoint/1015156/1.2-Site-contents.png)
- Then click on “add an app” option.
![add an app](data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==)
- Select “Custom list” option from the “your app” page. It will be popup for open create custom list.
![Custom List in SharePoint](data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==)
- Give the proper name and click on Create button.
![Adding Custom List](data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==)
- These steps will create custom list in site, now you can add multiple columns with different data type in this list.
![New SharePoint List](data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==)
- Now open create custom list and go through list setting and click on “Create column” option and create multiple column with different data type as per need.
![Create Column in SharePoint](data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==)
- I have added Current Date and Description filed in this list.
Note: We have created a simple List here but another SharePoint for Dummies article on Multiple Ways to Create a Custom List in Microsoft SharePoint 2013 is already covered here.
Step 2: Create workflow in SharePoint Designer
- Open your SharePoint site in SharePoint designer.
- Click on “List and library” option in Navigation section.
![SharePoint Designer Lists and Libraries](data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==)
- Select “
TodaysDate
” List and double click on it, it will open list’s properties.
![Custom List Properties](data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==)
- Now, Click on “List Workflow” in ribbon bar and fill-up workflow information.
![List Workflows in Microsoft SharePoint](data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==)
- It will open new window for workflow.
![New Window for Workflow](data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==)
- Click on “Local Variables” in ribbon bar.
![Local Variables in ribbon bar](data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==)
- It will open local variable window, where you can local add variable.
![Workflow Local Variables](data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==)
- Add current date as local variable.
![Current date as Local Variables](data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==)
- Now, come to the workflow part, write set and just click on search option and select “set Workflow variable”.
![Set Workflow Variable](data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==)
- Now, click on “workflow variable” and select “
CurrentDate
” option from dropdown.
![Workflow Variable Options](data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==)
![Workflow Variable Select Options](data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==)
- Now click on value field and set current date option.
![Workflow Option Value](data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==)
- Now select under line option and select.
![Workflow Underline Options](data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==)
- Select “Set Field in Current Item”.
![Set Field in Current Item](data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==)
- Now, click on Field item and select “
CurrentDate
”.
![Current Date Field Item](data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==)
- Now, click on Value filed and click on selected item. It will open one pop-up. You have to select Data source as “Workflow variable and parameters” and Field from source as “current date”.
![Look up for Field Item](data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==)
- Click on workflow settings in ribbon bar.
![SharePoint Workflow Settings](data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==)
- Select “Start workflow automatically when an item is created” option. In this option, our workflow will be automatically started on while any item is adding.
![Start Workflow Automatically](data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==)
- Now click on Publish button in the ribbon bar. So our workflow will be published and it is ready to use.
Step 3: Microsoft SharePoint Workflow Check
- Open SharePoint site and open
TodaysDate
custom list. - Click on new item. It will open popup for entering value. You have to just add Title field’s value and click on save button.
![Running New Item](data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==)
then….
![Add Item in SharePoint Workflow](data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==)
- Now, our workflow will start and it will set current date field’s value and workflow will completed.
![Running Workflow](data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==)
More Related from Microsoft SharePoint For Dummies
The post 3 steps to create a Workflow using SharePoint Designer appeared first on SharePoint For Dummies.