cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Dronzer10
Helper I
Helper I

Multi select people picker in Powerapps for Dataverse

Hello,

 

I am building Powerapps form based on Dataverse. I have used text column and the used combobox for people picker.

 

items property: ShowColumns(Office365Users.SearchUser({top:999, searchTerm:Self.SearchText}),"Mail", "DisplayName")

defaultselected items: {Mail: ThisItem.Team, DisplayName: ThisItem.Team}

Update property : Concat(ComboBox1.SelectedItems,Mail,",")

 

This works fine but now when someone saves and later comeback to this field they find all the names concatenated. Inturn if they want to remove any name from this they are compelled to remove all the name and readd once again.

 

How we can solve this issue? 

 

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
v-qiaqi-msft
Community Support
Community Support

Hi @Dronzer10,

Yes, this is caused by the formula you set for the DefaultSelectedItems property of the Combo Box. You set it as a concatenated string, which is a totally different data format with it in the Office365 table.

 

Modify the DefaultSelectedItems property of the Combo Box as below:

Ungroup(ForAll(Split(ThisItem.Team,","),Office365Users.SearchUser({searchTerm:Result})),"Value")

 

Best Regards,
Qi

View solution in original post

2 REPLIES 2
v-qiaqi-msft
Community Support
Community Support

Hi @Dronzer10,

Yes, this is caused by the formula you set for the DefaultSelectedItems property of the Combo Box. You set it as a concatenated string, which is a totally different data format with it in the Office365 table.

 

Modify the DefaultSelectedItems property of the Combo Box as below:

Ungroup(ForAll(Split(ThisItem.Team,","),Office365Users.SearchUser({searchTerm:Result})),"Value")

 

Best Regards,
Qi

Wow!!

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Community Call Conversations

Introducing the Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Users online (1,580)