Skip to main content
Nintex Community Menu Bar

How do you separate people in a Person field?

  • October 27, 2016
  • 3 replies
  • 17 views

Forum|alt.badge.img+9

I have a workflow in which I'd like to parse a Person field into individual people so that I can create a list item in another list?

Another possible scenario would be to send separate emails to each person in the Person Field.

Do I need to convert this to a string and use regular expression syntax--then reconstitute the strings as people?

Example code would be great.

thanks,

Stephan

3 replies

Forum|alt.badge.img+10
  • October 28, 2016

Hi Stephen,

You can use regular expressions split and store the data in a collection variable. you can use the collection operation to get the count or loop through it to get the item. You can send emails to each item in the loop.


Forum|alt.badge.img+9
  • Author
  • October 28, 2016

Do you have a code example?


Forum|alt.badge.img+11
  • October 28, 2016

Usually in a group, people are separated by ";". As ‌ recommended you can use regular expressions n look for ";".