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 / Unable to patch record...
Power Apps
Unanswered

Unable to patch records in Sharepoint - Patch All in Gallery using Toggle

(0) ShareShare
ReportReport
Posted on by 60

Hello Everyone,

 

I am new to PowerApps.  I'm trying to patch all my items from PowerApps to a SP list but i am unable to do it. The code i am trying to execute is below. I used the toggle to execute the patch. There is no error in the code however the patch is not working. 

Code i used for Submitting. Can anyone please help me what i am doing wrong.

 

ForAll(
Filter(
Gallery2.AllItems,
Toggle1.Value = false),
Patch(
PMInspections,
Defaults(PMInspections),
{
Title: TextInput_Action,
Status: Combo_Status.Selected,
Comments: TextInput_Comments,
PMInterval: Combo_PMInterval.Selected.Value
}
)
)

Categories:
  • JayMagness Profile Picture
    1,663 on at

    HI,

     

    Your patch sequence seems to be missing a few elements.

     

    Here is a couple of patch processes I have in an OnSelect button. 

     

    There are two different patches that run here but they are all using Forall...

     

    The Concurrent just allows them both to run side by side.

     

    Concurrent(


    ForAll(colScan2,Patch(Barcodescan1Log,{BarcodeValue:BarcodeValue,BarcodeType:BarcodeType,ScannedPerson:ScannedPerson,ScannedTime:ScannedTime,Scanweek:WeekNum(Now()),ScanType:"Label Verified", SerialNumber30:SerialNumber50})),

     

    ForAll(colScan2,Patch('Products-230116-2-jm',LookUp('Products-230116-2-jm',SerialNumber=SerialNumber50),{LKS:"Label Verified"}))
    )

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

#2
WarrenBelz Profile Picture

WarrenBelz 192 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 135

Last 30 days Overall leaderboard