Hi everyone,
Has anyone had any luck updating a field of type "Person or Group" with Sharepoint Designer Workflow? For some reason I keep getting a "Error updating a list item" error.
Scenario:
==========
I have an InfoPath Purchase Orders form published to a Sharepoint library. Several fields (e.g. Requestor, Approver etc) are promoted to Sharepoint columns. As it is not possible to promote to a Sharepoint column of type "Person or Group" the columns are created as "Single line of text" type.
Problem:
==========
On the Sharepoint library where the forms reside I need to use filtering using the dynamic [Me] parameter.
For example, there should be a view for approvers where a given approver will only see forms for which he/she was selected as approver. So, 10 forms have been submitted, 2 forms have Joe Smith set as approver, when John visits the library he can only see the 2 forms.
The problem is I can't use the "Approver" column promoted from Infopath to create a view using the [Me] parameter as the "Approver" column is of type "Single line of text". What I wanted to do was to create additional columns of type "Person or Group" (e.g. "Approver - for filtering") and have an SPD workflow update the new "person or group" column with the value of the corresponding "single line of text" column.
For example, when a form is filled out, a user specifies Joe Smith as approver, the form is submitted to Sharepoint, the "Approver" column is updated with "John Smith", a workflow kicks in and updates the "Approver - for filtering" column (Person or group type) with "John Smith". The column is then used to create a filter based on the [Me] parameter.
Easy enough. The problem is I can't update a column of type "person or group" using SPD workflow. I keep getting "error updating list item" errors no matter what values I use to update the column (email address, full name, user account) - it just won't take it. I've tried changing the "Show field" value on the column itself to Account, email and name but that doesn't make any difference.
Does anyone know why? Or what other approach I could use in this scenario? I know I could use one of the custom SPD workflow activities from CodePlex but as my intranet is hosted externally this is not an option.
Thanks in advance,
Greg