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 a sharepoint lis...
Power Apps
Unanswered

Patch a sharepoint list from a collection - patch is expecting a record but the collection is a table

(0) ShareShare
ReportReport
Posted on by

Hi,

I've been following Reza's tutorial about how to replicate an excel type experience using Powerapps

This one

https://www.youtube.com/watch?v=8I0Pt_8I6k8&t=442s

 

I've got to the save part, where the onselect has a patch

If(CountRows(colTaskupdates) > 0 ,
Patch('Request planning', colTaskupdates); Notify("Success",NotificationType.Success));Clear(colTaskupdates);

 

But I'm getting an error

Invalid argument type (Table). Expecting a Record value instead

 

Has something changes since the video was recorded? If I just type Path( PowerApps is telling me it needs a source,record.

What am I missing to make this work? If PowerBi is expecting a record and I'm providing it with a table - how can that ever work?

 

Thanks

@Reza 

Categories:
  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at

     @steshepherd 

    If you are simply adding new items to your table, and if the columns have the same names, you can use

    Collect('Request planning', colTaskupdates)

    If you are patching an update to existing records, you can shape your collection to match the datasource and include the ID column

    Patch('Request planning', ShowColumns( colTaskupdate, "ID", "SomeColumn","SomeotherColumn"));

     

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 220 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 194 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 150

Last 30 days Overall leaderboard