Wednesday, July 31, 2013

Update Lookup Field in the List Item in Visual Studio Workflow

When you want to update lookup column in your list item, you need to use UpdateListItem activity especially.
For example, your column has static name "MyColumn". Then you need to set path "MyColumnId" to id of the lookup value item (your Int32 variable):

Sunday, July 28, 2013

Lookup Activities in Visual Studio 2012

When you develop a workflow in VS 2012 you probably want to work with other lists of your SPWeb, not only the current list either the task list. But you may get this error:

 System.FormatException: Expected hex 0x in "{0}".   

Problem is that substitution "$ListId:Lists/MyList" doesn't work in flow scope.