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 / Patch Function - Updat...
Power Apps
Unanswered

Patch Function - Update a record

(0) ShareShare
ReportReport
Posted on by 20

Hello PowerUsers,

 

I have a problem with my app, can anyone help me on the Patch Function that updates the record instead of creating a new in my sharepoint list?

 

I have an app that whenever the users inputs their contact number and personal email address, the records will be updated in my sharepoint list instead of creating a new one.

 

I have tried so many patch functions with no errors but it keeps on creating a new record which should just be updated.

 

Here is my code that I'm using right now:

 

Patch(
'EXIT TRACKER -',
varFormData,
Form2.Updates,
Form1.Updates
);

 

Hope someone could help! Thank you!

Powerapps Patch.JPG
Categories:
I have the same question (0)
  • ANB Profile Picture
    7,252 Super User 2026 Season 1 on at

    Hi @JMBernardo

    Here is a standard Patch function, a base record is required if you want to update an existing record. 

    PatchDataSourceBaseRecordChangeRecord1 [, ChangeRecord2, … ])

    What does varFormData is used for? Does it store the record? If yes, then this should be your code:

    Patch(
    'EXIT TRACKER -',
    LookUp('EXIT TRACKER -', ID = varFormData.ID),
    Form2.Updates,
    Form1.Updates
    );

    Check this video about how to use the patch function: https://www.youtube.com/watch?v=BzZ0a3zRFUk

    -----------------------------------------------------------------------------------------------------------------------------

    I hope this helps.

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs up.👍

    Thanks,
    ANB


  • CU07021125-0 Profile Picture
    20 on at

    Hello!

     

    I tried, it doesn't creating a new record which is my goal, but it doesn't update the record in my sharepoint list. The contact number and personal number is still blank whenever I try to submit.

    JMBernardo_0-1702109236431.png

     

     

  • ANB Profile Picture
    7,252 Super User 2026 Season 1 on at

    @JMBernardo You need to share more info regarding the form2 and form1 that you have used. Also share info regarding contact number and personal number update properties of these 2 data card.

     

    Thanks,

    ANB

  • CU07021125-0 Profile Picture
    20 on at

    Thanks ANB.

     

    Here's the overview of the app.

     

    The Form 1 and Form 2 are both editable forms which comes from 2 different screens. Form 2 is on Screen 1 and Form 1 is on Screen 2.

    The default property of both Forms are set to varFormData

    JMBernardo_0-1702109793212.png


    The Contact Number and Personal Email Address are both in Text Value, which the users will input.

    The goal of the app is to input their Personal details such as Contact and Email, when they click the "Next" button, the data that was provided by the users will update the sharepoint list connector before submitting the necessary docs, the "Next" button will serve as their "Draft" button.

    Once they are on screen 2 and ready to submit the documents, then they can just click "Submit" (re-update the sharepoint list based on the submitted files)



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
WarrenBelz Profile Picture

WarrenBelz 356 Most Valuable Professional

#2
11manish Profile Picture

11manish 225 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 211

Last 30 days Overall leaderboard