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 / patch multiselection c...
Power Apps
Answered

patch multiselection column

(0) ShareShare
ReportReport
Posted on by 17

I'm new in powerapps and I would appreciate some help.
I want to patch a list with 2 fields: Title (text) a DepartsAfectats(Multiselect text)
I'm coding patch but it does not work and gives error "Argument type not valid"
Patch(ListaPetic;Defaults(ListaPetic);{Título:NumPeticNou.Text;DepartAfectats:ComboDeparts.SelectedItems});;
where NumPeticNou is a input text and ComboDeparts is a combobox with multiple value selection.

Please how must code it to work?
Thanks in advance.

Categories:
I have the same question (0)
  • Verified answer
    Ami K Profile Picture
    15,689 Super User 2024 Season 1 on at

    @arobles -

     

    I am not seeing anything wrong with your code. Assuming your data source is SharePoint, what do you have in the Items property of your ComboBox control? I would expect:

     

    Choices([@ListaPetic].DepartAfectats)

     

  • v-qiaqi@microsoft.com Profile Picture
    Microsoft Employee on at

    HI @arobles,

    WHat do you mean by DepartsAfectats(Multiselect text)? Is it a multi select Choice column or a multi-line-of-text column?

    How you set the Items property of the ComboDeparts?

     

    If DepartsAfectats is just a text column, I think you need to modify yoru formula as below:

    Patch(ListaPetic;Defaults(ListaPetic);{Título:NumPeticNou.Text;DepartAfectats:Concat(ComboDeparts.SelectedItems,ColumnName,",")});;

    Note that the ColumnName in Concat() represents the column value returned by your ComboBox selected items.

  • Verified answer
    arobles Profile Picture
    17 on at

    Thanks for your answer.

    I changed Item definition of ComboDeparts to

    Choices([@ListaPetic].DepartAfectats)

    But I have the same result

     

     

  • arobles Profile Picture
    17 on at

    Thanks for your answer.

    DepartsAfectats is a multi choice column.

  • arobles Profile Picture
    17 on at

    Finally I deleted and defined again the multi select column and ..... now  it works.

    Thanks for yours suggestions.

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 400 Most Valuable Professional

#2
11manish Profile Picture

11manish 141 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 109 Super User 2026 Season 2

Last 30 days Overall leaderboard