Solved

People Picker returning text to send in an email

  • 7 June 2023
  • 3 replies
  • 102 views

Badge +3

Hi all, 

I have a people picker in my form that I want the end user to add multiple names to. I am then trying to get the email and the name of the people in the picker, and include it into an email.

I’ve tried many different methods to do this (loop for each, text to string, get item from collection) and I either get just the last person added to the people picker or everyone that is in the people picker with lines and lines of code.

Thank you in advance!

icon

Best answer by Garrett 7 June 2023, 05:31

View original

3 replies

Userlevel 6
Badge +16

Hi @ItsGavin 

 

Start Event Form (could also be a Task Form)
People Picker. Name is “Managers”. Allow Multiple selection

 

Workflow

Loop for Each → Use the Start Event, “Managers

Create Text String (or Set Variable)

On the first iteration, the value of txt_EmailAddressList is -blank-
and Email is the Current Item->Email 

 

Use a Log to verify the value of the txt_EmailAddressList variable.
It should be => user1@nintex;user2@nintex;user3@nintex;

 

Badge +3

@Garrett That is perfect! Thank you so much!

Userlevel 6
Badge +16

Just remember that you will need at least one email address.

The workflow will fail if there isn’t any email address in the txt_EmailAddressList variable (when the txt_EmailAddressList is -blank-)

Reply