cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
pareshm
Level: Powered On

SP online list - Person or Group - Mulitple selection is set to Yes.

Hi,

I have below SP online list. In Name column Mulitple selection is set to Yes.

Column Type

Title       Single line of text            

Name    Person or Group

 

people1.PNGSP list Item

 

SelectedItem is a collection in powerapps, it contains sharepoint Item.

 

people3.PNG

 

people2.PNGPowerApps Collection

 

  1. How do I show comma separated Display Names in label. I am Not able to write a formula using Concat. Name column table is confusing.
  2. Since it is in a table format I am not able to it display list content Gallery either.
1 ACCEPTED SOLUTION

Accepted Solutions
Super User
Super User

Re: SP online list - Person or Group - Mulitple selection is set to Yes.

Looking at your screenshots I think the collection is called SelectedItem and it only has one row. The column in the collection that has the user names is "Name".  If that is correct then the formula would look like this:

 

Left(Concat(First(SelectedItem).Name, DisplayName & "; "), Len(Concat(First(SelectedItem).Name, DisplayName & "; "))-2)



--------------------------------------------------------------------------------
If this post helps answer your question, please click on “Accept as Solution” to help other members find it more quickly. If you thought this post was helpful, please give it a Thumbs Up.
5 REPLIES 5
Super User
Super User

Re: SP online list - Person or Group - Mulitple selection is set to Yes.

This assumes the values are in a como box called DataCardValue13.  
Example:
Left(Concat(DataCardValue13.SelectedItems, DisplayName & "; "), Len(Concat(DataCardValue13.SelectedItems, DisplayName & "; "))-2)

In this example we are concatenating the display name of the selected items in the combo box into a string separated by a semi colon. Then we are cleaning up the string by removing the trailing semi colon.



--------------------------------------------------------------------------------
If this post helps answer your question, please click on “Accept as Solution” to help other members find it more quickly. If you thought this post was helpful, please give it a Thumbs Up.
Highlighted
pareshm
Level: Powered On

Re: SP online list - Person or Group - Mulitple selection is set to Yes.

Hi Jeff, Values are not in the combobox. Values are in the collection. I have one more snapshot in original message for clarity. 

Super User
Super User

Re: SP online list - Person or Group - Mulitple selection is set to Yes.

Looking at your screenshots I think the collection is called SelectedItem and it only has one row. The column in the collection that has the user names is "Name".  If that is correct then the formula would look like this:

 

Left(Concat(First(SelectedItem).Name, DisplayName & "; "), Len(Concat(First(SelectedItem).Name, DisplayName & "; "))-2)



--------------------------------------------------------------------------------
If this post helps answer your question, please click on “Accept as Solution” to help other members find it more quickly. If you thought this post was helpful, please give it a Thumbs Up.
pareshm
Level: Powered On

Re: SP online list - Person or Group - Mulitple selection is set to Yes.

Hi @Jeff_Thorpe 

That is correct.

Left(Concat(First(SelectedItem).Name, DisplayName & "; "), Len(Concat(First(SelectedItem).Name, DisplayName & "; "))-2)

This is working perfectly fine.

 

Could you please also help me in displaying list contents in gallery without use of Collection?

 

pareshm
Level: Powered On

Re: SP online list - Person or Group - Mulitple selection is set to Yes.

This worked in gallery!! Thanks a lot.

Left( Concat(ThisItem.Name, DisplayName & "; ") , Len(Concat(ThisItem.Name, DisplayName & "; "))-2)

people - gallery.PNG

 

Helpful resources

Announcements
firstImage

PowerApps Monthly Community Call!

Join us next Wednesday for our Demo Extravaganza, October 16, 2019 8am PDT.

firstImage

Microsoft Business Applications Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

FirstImage

Power Platform World Tour

Coming to a city near you

thirdimage

PowerApps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

FourthImage

Join PowerApps User Group!!

Connect, share, and learn with your peers year-round

SecondImage

Power Platform Summit North America

Register by September 5 to save $200

Top Kudoed Authors
Users Online
Currently online: 359 members 4,924 guests
Recent signins:
Please welcome our newest community members: