cancel
Showing results for 
Search instead for 
Did you mean: 
Workflow Hero

How to capture the Display Name of multiple people from a Person or Group column and insert them in a notification

Updated: Thanks to ‌ for suggesting the best solution.

In this scenario we have a Person or Group column that allows multiple selection which means users are able to insert more than one person in the column. The goal is to capture the Display Name of the people on the list. In order to achieve this goal follow the steps below:

  1. Create the Person or Group  column. In this example I created People List column as detailed below. Make sure to set Allow multiple selection to Yes.
  2. Create a Nintex workflow.
  3. Create a workflow variable and set the type to Single line of text. In this example I created var_Display_Names.
  4. Add Set Variable workflow action to the workflow. Set the workflow variable created in the previous step (in our example  var_Display_Names). Choose List Lookup from the Equals dropdown menu. Source must be Current item. Then choose the Person or Group variable created in the step 1 from the Field dropdown menu (in this example People List). Now click the breadcrumbs button (...) and choose Display names, Semicolon Delimited from Select return type list.

  5. All the Display Names will be stored in the var_Display_Names variable separated by semicolon (Smiley Wink. For example the final result will be: John Doe;Bill Smith;Anna Kennedy;

Don't hesitate to comment or contact me if you have any questions. Thank you for reading this article. I hope you find it helpful.

Reply
3 Replies
Workflow Hero

Re: How to capture the Display Name of multiple people from a Person or Group column and insert them in a notification

simpler way is configure desired return type

Accept as Solution Reply
Workflow Hero

Re: How to capture the Display Name of multiple people from a Person or Group column and insert them in a notification

Thanks ‌. That's great! I update the post.

Accept as Solution Reply
Workflow Hero

Re: How to capture the Display Name of multiple people from a Person or Group column and insert them in a notification

Similarly, I have a custom list.  Each list item is a department, with a Person column for the people in that department. There are between 9 and 35 people in each list item, depending on department size. 

The custom list populates a multi-selection field, but the field displays the department and not each individual in that department.

multi-selection field

The goal is, by selecting each department, being able to send a notification to all those individuals in the selected department or departments.

So far, I'm able to set it up where it'll pick up one department selection, and send an email notification, but if I select more than one, it won't email all of them but just one of them.

This is my variable

variable

This is setting my variable to match the selection of the multi-selection field, called "Communications Groups"

How do I email each list item (department) from the multi-selection field instead of just one of them?  Some sort of collection operation and a query?  Any help would be great.

Thanks.

0 Kudos
Accept as Solution Reply