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 / fast patch new rows
Power Apps
Answered

fast patch new rows

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

I have used the faster way to patch to a SharePoint list for updating a column and wanted to now do the same for creating new rows, but I'm getting an error. I loaded a collection with many rows with the same column names in my list, but on the line to patch the list using the collection an error shows saying "Invalid argument type (Table), expecting record".

This is the code to build the collection and then call the patch. 

ForAll(
 sessionCon,
 Collect(
 attendCol,
 
 {
 ProgID: ThisRecord.ProgID0,
 CustCID: ThisRecord.CustCID,
 CustID: ThisRecord.CustID,
 SessionID: varsessID,
 Title: ThisRecord.ProgID0 & " " & varsessID & " " & ThisRecord.CustID & " " & ThisRecord.CustCID,
 Participated : ThisRecord.Participated
 }
 )
);Patch(Attendance,attendCol)

 

If I only put one line in the collection it works, but it doesn't seem like it likes more. When I did this to update multiple records, I loaded a collection with the IDs and columns to change, so I don't get why I can't pass many records this way....

 

 

Categories:
I have the same question (0)
  • Verified answer
    WarrenBelz Profile Picture
    155,290 Most Valuable Professional on at

    Hi @Anonymous ,

    I am not sure that is the quickest way - try this

    Patch(
     Attendance,
     ForAll(
     sessionCon As _Con,
     {
     ProgID: _Con.ProgID0,
     CustCID: _Con.CustCID,
     CustID: _Con.CustID,
     SessionID: varsessID,
     Title: _Con.ProgID0 & " " & varsessID & " " & _Con.CustID & " " & _Con.CustCID,
     Participated : _Con.Participated
     }
     )
    )

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    MVP (Business Applications)   Visit my blog Practical Power Apps

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    thanks, @WarrenBelz It did go quick...I forgot to check for something before the patch so it added all records before I realized it lol. 

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 1,045

#2
Valantis Profile Picture

Valantis 675

#3
11manish Profile Picture

11manish 592

Last 30 days Overall leaderboard