Skip to main content

Notifications

Power Apps - Building Power Apps
Unanswered

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

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
    JayMagness 1,665 on at
    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

November 2024 Newsletter…

November 2024 Community Newsletter…

Community Update Oct 28…

Power Platform Community Update…

Tuesday Tip #7 Community Profile Tips…

Welcome to a brand new series, Tuesday Tips…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 143,487

#2
RandyHayes Profile Picture

RandyHayes 76,308

#3
Pstork1 Profile Picture

Pstork1 64,014

Leaderboard