Wednesday, November 3, 2010

Create Update List Item to value of people/user field

Create Update List Item to value of people/user field


Resolution:
1. Install Windows SharePoint Services February Cumulative Update:
http://support.microsoft.com/kb/961750.

Workaround:
If you are unable to install the SharePoint February CU, then here is a workaround:
1. Create a string variable in the workflow, and call it UserID.
2. Add the workflow action "Set Workflow Variable". Set the UserID variable to whatever user type column you are interested in (example: "Created By").
3. Add the workflow action "Build Dynamic String". In the dynamic string dialog, type "-1;#" (without quotes). Then, click "Add Lookup" to the workflow variable UserID. Click OK.
4. Still on the build a dynamic string action, set the variable to store in as UserID.
5. Change the workflow action to use the variable UserID when updating or setting the Person or Group type field.
NOTE: the same workaround works for FBA (forms based authentication) providers, as well.



Reference :

http://social.msdn.microsoft.com/Forums/en-US/sharepointworkflow/thread/9410ed52-e68b-4f5f-8acf-1b90e01d8556/

In SharePoint Designer, use a Dynamic String on your Person or Group field to insert "-1;#" to the beginnning of the field. I'm guessing this is due to some sort of error that occurs when SP parses a Person/Group list

http://social.msdn.microsoft.com/Forums/en-IE/sharepointworkflow/thread/81ed5261-3b0e-4d9c-be32-35900bb841a6http://mohd-shamim.blogspot.com/2009/02/spd-workflow-error-updating-list-item.html

Search Text:Create New Item Workflow Fails If people/user field error updating list item.

No comments:

Post a Comment