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 / Patching a collection ...
Power Apps
Unanswered

Patching a collection to a sharepoint list

(0) ShareShare
ReportReport
Posted on by 4

I have a gallery where you select multiple values and it puts the values in a collection:

 

OnSelect = Collect(Collection_Name,ThisItem)

 

The current code I am using to send Collection_Name to the SharePoint list is:

OnSelect = Patch(Sharepoint_Name, Defaults(Sharepoint_Name), { Column_Name:Collection_Name } )

 

Column_Name is a choice column that takes multiple selections.

bigcodes42_0-1676015794021.png

 

The error I get is "Expecting a table value, but of a different schema" and "Missing column. Your formula is missing a column 'Value' with a type of 'Text'.

 

How do I send Collection_Name to a column that takes multiple values?

 

 

 

Categories:
I have the same question (0)
  • NandiniBhagya20 Profile Picture
    4,667 Super User 2024 Season 1 on at

    Hi @bigcodes-42 ,
    For updating a choice field, try using below syntax - 
    OnSelect = Patch(Sharepoint_Name, Defaults(Sharepoint_Name), { Column_Name: {Value: Collection_Name }})

  • bigcodes-42 Profile Picture
    4 on at

    Hello @NandiniBhagya20, thanks for replying. The code did not work. The error it is giving me is "does not match the expected type 'table'. Found type 'record'".

  • NandiniBhagya20 Profile Picture
    4,667 Super User 2024 Season 1 on at

    Try wrapping it inside a table function.
    Are you using choice field with multi select option enabled 

     

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 356 Most Valuable Professional

#2
11manish Profile Picture

11manish 225 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 211

Last 30 days Overall leaderboard