From the course: SharePoint Designer 2010: Building Custom Workflows

Unlock the full course today

Join today to access over 22,400 courses taught by industry experts or purchase this course individually.

Understanding workflow variables

Understanding workflow variables

From the course: SharePoint Designer 2010: Building Custom Workflows

Start my 1-month free trial

Understanding workflow variables

When you look at the list of Core Actions available for SharePoint workflows, you'll find one action called Set Workflow Variable. Set Workflow Variable is used to create a memory space that you can use to hang onto an item that you want to use later in the workflow. For example, you might get some information from a user that you want to use three steps along. So we'll store that in a Workflow Variable. You might calculate something and after it's calculated, but before it's used somewhere it's going to be stored in a Workflow Variable. There are a couple of different ways to create Workflow Variables, one is using Set Workflow Variable, and when you do that you'll actually go up in this workflow and click on Local Variables and Add a named container for it. So if you were going to calculate a total cost, go ahead and just call it TotalCost, and we'd want to store that sort of thing is an Integer or a Number not as a String, and you'd say OK, and we have a new Workflow Local Variable…

Contents