Notifications
Announcements
Can you create new Sharepoint records based on a combobox?
Patch(ListName,
{Task Name:Dropdown1.selected,
Person:combo_box1.selecteditems.result,
Department:dropdown4.selected})
the person value is a dropdown list of names on sharepoint
You can use a ComboBox to drive a Patch(), but keep in mind SelectedItems is a table with potentially multiple entries - your Patch() needs to handle this. Syntax will look more like:
ForAll(combo_box1.SelectedItems As aItem, Patch(ListName,Defaults(ListName), { TaskName: Dropdown1.Selected.Text, Person: aItem.Result // Assuming this is a single line of text column Department: Dropdown4.Selected.Text } ) )
Hope that helps,
Bryan
Yes you can, but depends on your SharePoint list column settings. If it's a person field, then you'll need to allow multiple people on the column. I can't remember if powerapps will convert that or not automatically, but you'll want to make sure that's enabled on the column, then update the schema / save reload your app, then use the combobox.selecteditems only not .results, it should respect the multiple selection.
If it's another column type then you'll have to use concat etc. to concatenate the .selecteditems from the table as suggested in previous reply.
Hi @marc2510,
Do you want to save multi select Combo Box items to Person column?
Could you please tell me that if the Person column is a Text column in the SP list?
I assume that the Person column is a single line of text column, please modify your formula as below:
Patch(ListName, {Task Name:Dropdown1.selected, Person:Concat(combo_box1.SelectedItems,Result,",") Department:dropdown4.selected})
Is it possible to have the Patch function create the number of records equivalent to the number of selections in the combobox, i.e. one new record per selection? The solution seems to put my multiple selections into one row/one field.
ForAll(combobox.SelectedItems As alias, Patch(SP_list, Defaults(SP_list),{alias_test_field: alias.Result}));
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
In our never-ending quest to improve we are simplifying the forum hierarchy…
We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
WarrenBelz 721 Most Valuable Professional
Michael E. Gernaey 320 Super User 2025 Season 2
Power Platform 1919 268