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 value to all ite...
Power Apps
Answered

Patch value to all items in SharePoint

(0) ShareShare
ReportReport
Posted on by 388

I have this formula which takes ages to run on 600 items.  I want to update all items in the SharePoint list with the same value.  I understand this can be done with one call to SharePoint by patching in one go.  What is the correct way to do this?

 

ForAll( ShowColumns( BMSlibrary, "ID", "Issue" ), Patch( BMS, ThisRecord, {Issue: Value(TextInput1.Text)} ) )

Categories:
I have the same question (0)
  • Akser Profile Picture
    1,546 Moderator on at

    Hi @steve_hendy,

     

    Is BMSlibrary is a local collection of the data source BMS?

     

    Patch(BMS, ShowColumns(BMSlibrary, "ID", "Issue"), {Issue: Value(TextInput1.Text)})

     

     

  • steve_hendy Profile Picture
    388 on at

    Yes, it is.  I will try this soon and let you know if it works.

  • Verified answer
    Akser Profile Picture
    1,546 Moderator on at

    If you want t update all records, this should also work (not sure if Patch or UpdateIf is quicker - give it a try):

    UpdateIf(BMS, true, {Issue: Value(TextInput1.Text)})

     

  • steve_hendy Profile Picture
    388 on at

    this did not work, maybe because it was a SharePoint library (I said list).

  • steve_hendy Profile Picture
    388 on at

    This worked, Thank you.

  • Akser Profile Picture
    1,546 Moderator on at

    What about this one?

    ClearCollect(
    	MyPatchCollection,
    		AddColumns(
    			ShowColumns(
    				BMSlibrary, "ID"
    				), 
    				"Issue",
    				Value(TextInput1.Text)
    				)
    			);
    Patch(BMS, MyPatchCollection)

    If it does work, then you can compare the performance of UpdateIf vs Patch 😉

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

#2
11manish Profile Picture

11manish 165 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 110 Super User 2026 Season 2

Last 30 days Overall leaderboard