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 / Update multiple sharep...
Power Apps
Answered

Update multiple sharepoint list items with Patch

(0) ShareShare
ReportReport
Posted on by 6

Hello,

 

Based on below article I tried to update few records in my sharepoint list, however I received error message "Incompatible types for comparison. These types can't be compared: Text, Table".

Create or update bulk records in Power Apps - Power Apps | Microsoft Learn

My temporary collection was based created based on Defaults from sharepoint list, so I also tried to update it by below code:

Patch( 'SharePoint List', TempCollection)

 

 

I would appreciate any advices about this. 

 

My code:

 ForAll(
 Filter(TempCollection, 'Serial Number' <>Blank()),
 Patch(
 'SharePoint List',
 LookUp('SharePoint List','Tool Serial Number'=TempCollection[@'Serial Number']),
 {
 Status: {Value:"In Service"}
 }
 )
 );

 

Categories:
  • Verified answer
    LaurensM Profile Picture
    12,516 Moderator on at

    Hi @Lijo,

     

    If the collection and SharePoint list completely matches column-wise, the first function should work. However, bulk patching can also be done with ForAll statements and is required when the collection does not 100% match the SP list.

    In your case the following adjustments to your ForAll should work:

    ForAll(
     Filter(TempCollection, 'Serial Number' <> Blank()) As Main,
     Patch(
     'SharePoint List',
     LookUp('SharePoint List','Tool Serial Number' = Main.'Tool Serial Number',
     {
     Status: {Value:"In Service"}
     }
     )
    );

     

    If this solves your question, would you be so kind as to accept it as a solution.

    Thanks!

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

#2
Mohsin Ali Profile Picture

Mohsin Ali 225

#3
M Bilal Khan Profile Picture

M Bilal Khan 192

Last 30 days Overall leaderboard