Is there a way to coerce a String to a Person field?

  • 27 October 2016
  • 3 replies
  • 3 views

Badge +9

Let's suppose you have a Person Field that renders something like this into a string: Reviewers: 59;#Onisick, Stephan A.;#58;#Dempsey, Karen M.

I can figure a way to parse and recombine these into separate people strings.  I'm just not sure how to convert these back to valid people fields to write to another people field in another list.

Any ideas?


3 replies

Badge +10

Hi Stephan, you can use GetUserProfile. If it is for separate emails, you can use that value without converting

Badge +9

Your talking about a Web Service--I think. Web Services are problematic in my SharePoint Environment. We have Secure Linux Servers as front-ends.

Userlevel 5
Badge +14

you shouldn't need any conversion, it should resolve the user automatically.

if you want to make sure that string resolves to user correctly within workflow you can do that by following steps

- create text variable and set it to single user

- create people or group variable and set it to text variable from above

- check the content of people or group variable

Reply