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 / How to Update Patch Co...
Power Apps
Answered

How to Update Patch Condition to Overwrite Existing Data

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

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:
  • Verified answer
    Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Solved it!

     

    Thanks!

     

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

  • RandyHayes Profile Picture
    76,299 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

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
11manish Profile Picture

11manish 411 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 338

#3
WarrenBelz Profile Picture

WarrenBelz 256 Most Valuable Professional

Last 30 days Overall leaderboard