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.
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
thirdimage

Power Automate Community User Group Member Badge

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

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

Top Kudoed Authors
Users Online
Currently online: 274 members 6,134 guests
Please welcome our newest community members: