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

Patch a Multiselect Dropdown to Multi People/Group SP column.

I keep getting an error where my multiselect dropdown does not work on adding the data to my sharepoint list.

 

The sharepoint column's properties are: People field, does not allow selection of groups, and allows multiple selections.

 

My dropdown control in PowerApps has the Items field as Choices('My Sharepoint List'.mypeoplecolumn).

 

My Patch function is 
ForAll(
MyPowerAppsGallery.AllItems,
(Patch(
'My Sharepoint List',
Defaults('My Sharepoint List'),
{
mypeoplecolumn: mypeopledropdown.SelectedItems

 

What's the workaround in patching the data? The errors I get is something related to IOConvertible. Many thanks!

2 REPLIES 2
Community Support Team
Community Support Team

Re: Patch a Multiselect Dropdown to Multi People/Group SP column.

Hi @migiiyaa ,

Do you want to update a multiple people column?

Firstly, since it is a multiple people column, you should use combo box instead of drop down.

Drop down control is used for single choice.

Inset a combo box, and set its Items: Choices(listname.columnname)

Secondly, according to your formula, I'm a little confused.

Here are a few of my assumptions:

1)create a new record

Patch(listname,Defaults(listname),{columnname:ComboBox1.SelectedItems})

2)modify multiple records

ForAll(MyPowerAppsGallery.AllItems,
Patch('My Sharepoint List',LookUp('My Sharepoint List',ID=MyPowerAppsGallery[@ID]), {mypeoplecolumn: ComboBox1.SelectedItems}
)
)

3)create multiple records

ForAll(
      MyPowerAppsGallery.AllItems,
      Patch(
            'My Sharepoint List',
            Defaults('My Sharepoint List'),
             {
               mypeoplecolumn:ComboBox1.SelectedItems}
)
)

Best regards,

Community Support Team _ Phoebe Liu

 

 

Community Support Team _ Phoebe Liu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Highlighted
migiiyaa
Level: Powered On

Re: Patch a Multiselect Dropdown to Multi People/Group SP column.

Sorry for my terminology! But I was indeed using a combo box, the correct assumption is the 3rd. Although we have the same formula, it just doesn't seem to work on my end. Thanks for the response!

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: 483 members 4,624 guests
Please welcome our newest community members: