web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id : BWtEf2LkkR4gYRU8L8fod3
Power Apps - Building Power Apps
Unanswered

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

Like (0) ShareShare
ReportReport
Posted on 11 Jul 2023 13:40:24 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 11 Jul 2023 at 15:14:09
    Re: Unable to patch records in Sharepoint - Patch All in Gallery using Toggle

    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

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 791 Most Valuable Professional

#2
MS.Ragavendar Profile Picture

MS.Ragavendar 410 Super User 2025 Season 2

#3
mmbr1606 Profile Picture

mmbr1606 275 Super User 2025 Season 2