Announcements
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.
@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)
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.
Thanks for your answer.
I changed Item definition of ComboDeparts to
But I have the same result
DepartsAfectats is a multi choice column.
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.
Congratulations to our community stars!
Expanding mentorship, skilling, and AI innovation
These are the community rock stars!
Stay up to date on forum activity by subscribing.
WarrenBelz 400 Most Valuable Professional
11manish 141 Super User 2026 Season 2
MS.Ragavendar 109 Super User 2026 Season 2