I am trying to take advantage of the [Me] filter in a SharePoint 2013 library. I was able to do this in MOSS, but it is not working for 2013. Here are the steps I used to make this happen.
- Added contact selector control to form (enabled multiple values)
- Added text field (FormViewer) to hold the value of this statement: eval(eval(Person, 'concat(pc:AccountId, ";")'), "..")
This works as expected. It takes all of the values from the one control and puts it into the one field inside of SharePoint. Next I did this:
- Created a 'Person or Group' column (Viewer), enabled multiple values, used 'Name with Presence'
- Setup a SP Designer workflow to set the value of 'Viewer' to 'FormViewer' (this is how I used to do it in MOSS)
The workflow starts but cancels immediately. The reason is, 'FormViewer' is a string value and designer will not copy to 'Viewer' which is a people picker field.
I tried another approach. I promoted the 'AccountId' field from withing the People Picker control in InfoPath to the library. It shows both values. I then setup a worklow just like the one above and replaced 'FormViewer' with 'AccountId'. This semi works. It will only populate the last value in 'AccountId' field. For instance, I have John Smith, Joe Public, and S.C. Rooge, the only name that will show up in 'Viewers' is S.C. Rooge.
I don't know what else to do. Any help on this would be greatly appreciated.
Thanks,
Eric