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 Platform Call June 2022 768x460.png

Power Platform Community Call

Join us for the next call on August 17, 2022 at 8am PDT.

Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Users online (4,787)