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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / How to Update Patch Co...
Power Apps
Unanswered

How to Update Patch Condition to Overwrite Existing Data

(0) ShareShare
ReportReport
Posted on by

My latest work or art...

 

I need this patch to update all of the existing fields in the SP list in this condition when the User press the update button. I've gotten it to write new with the default condition; but I can't seem to figure this overwrite language out.

 

Patch(MemberList, Lookup( MemberList), {Park:UpdateFormParkDropdown.SelectedText.Park, NPSReg:UpdateFormNPSRegFld.Text, DOIReg:Value(UpdateFormDOIRegFld.Text), Title:UpdateFormUnqIDFld.Text, SteNmNo:UpdateFormSteNmNoFld.Text, FrstNm:UpdateFormFirstNmFld.Text, LstNm:UpdateFormLastNmFld.Text, MI:UpdateFormMIFld.Text, FullNm:UpdateFormFullNmFld.Text, UsrNm:UpdateFormUserNameFld.Text, ECMem:UpdateFormEngCoMemFld.Text, ECPark:UpdateFormEngCoParkFld.Text, ActveECMem:UpdateFormActiveECMemberFld.Text, MemberEmail:UpdateFormMemberEmailFld.Text, ProgramHierarchy:UpdateFormProgramHierarchyFld.Text});

 

3csman_0-1612909608819.png

 

Categories:
I have the same question (0)
  • Verified answer
    Community Power Platform Member Profile Picture
    on at

    Solved it!

     

    Thanks!

     

    Patch(MemberList,
    LookUp( MemberList, UnqID = EditFormUniqueIDFld.Text),
    {Park:UpdateFormParkDropdown.SelectedText.Park,.....

  • RandyHayes Profile Picture
    76,297 Super User 2024 Season 1 on at

    @Anonymous 

    Also consider the UpdateIf function:

    UpdateIf(MemberList, UnqID = EditFormUniqueIDFld.Text,
     {Park:UpdateFormParkDropdown.SelectedText.Park,.....

    This takes on more data transaction out of the process (i.e. the LookUp). 

     

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 759 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 310 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 228

Last 30 days Overall leaderboard