web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / The new modern Combo B...
Power Apps
Unanswered

The new modern Combo Box selectedItems errors out

(0) ShareShare
ReportReport
Posted on by

Hi Guys

I have been following Raza recent tutorial Power Apps PATCH function Tutorial with Modern Controls. But the Skills: combo multiselect control error's out. The data source is SharePoint. It is definitely the selectedItems property the issue, just wondered if there is a workaround or syntax I am missing here.

 

I been struggling a bit with this one...

 

bllknight007_1-1700584094960.png

 

Thanks in advance  

Categories:
  • Hassan_SZ_365 Profile Picture
    542 on at

    Hi @bllknight007 ,

    Use this Formula:

     

    Patch(
     'Employee Data', 
     If(varRecordType="New", Defaults('Employee Data'), varItem),
     {
     Title: TextInputCanvas1.Text,
     Department: DropdownCanvas2.Selected,
     Age: Value(TextInputCanvas2.Text),
     'Hire Date': DatePickerCanvas1.SelectedDate,
     'Exit Date': DatePickerCanvas2.SelectedDate,
     Salary: Value(TextInputCanvas3.Text),
     Skills: ForAll(ComboboxCanvas1.SelectedItems, {Value: Value}),
     Active: CheckboxCanvas1.Checked
     }
    )

     

    In this formula, ForAll(ComboboxCanvas1.SelectedItems, {Value: Value}) creates an array of records with a Value field, which is the format expected by SharePoint for multi-select choice fields.

    If you still encounter issues, make sure the names of the controls (ComboboxCanvas1, TextInputCanvas1, etc.) match exactly with those in your app. Also, ensure that the column names (Skills, Title, Department, etc.) match with the internal names of your SharePoint list's columns.

    If the Skills column is a 'Lookup' column in SharePoint, the approach would be different, and you would have to use the Id of the selected items.

    Best Regards,
    Hassan Raza

  • MudassarSZ365 Profile Picture
    591 on at

    Hi @bllknight007 ,

    corrected version of the Skill field patching:

    Skills: ForAll(ComboboxCanvas1.SelectedItems, {Value: Value})

    Patch function with correction

    Patch(
     'Employee Data',
     If(varRecordType="New", Defaults('Employee Data'), varItem),
     {
     Title: TextInputCanvas1.Value,
     Department: DropdownCanvas2.Selected.Value,
     Age: Value(TextInputCanvas2.Value),
     HireDate: DatePickerCanvas1.SelectedDate,
     ExitDate: DatePickerCanvas1_1.SelectedDate,
     Salary: Value(TextInputCanvas2_1.Value),
     Skills: ForAll(ComboboxCanvas1.SelectedItems, {Value: Value}),
     Active: CheckboxCanvas1.Checked
     }
    );

      If this solution helps resolve your issue, please accept it. 😊

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.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 382 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 329

#3
WarrenBelz Profile Picture

WarrenBelz 187 Most Valuable Professional

Last 30 days Overall leaderboard