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 / Patching items to data...
Power Apps
Unanswered

Patching items to dataverse table creates multiple records

(1) ShareShare
ReportReport
Posted on by Microsoft Employee

Good Morning 

I have a flat table structure with my columns in it.

 

I then have a canvas app that has multiple screens and forms and galleries in it.

What is happening is that when I patch, I create 20to 30 new records and I am confused as to what is wrong here 

 

Below is a part of my code 

Cheeseboi_25-1646523264605.png

 

 

Cheeseboi_0-1646522487427.png

 

I have the same question (0)
  • ansrikanth Profile Picture
    329 on at

    Patch function will only updates the record if you provide a matching key. In your code, it doesnt look like you are providing a matching key. All you are doing is multiple patches (potentially on the same table) with out any matching record, which essentially creates new records.

     

    you have to tell it to which record it has to update and with what values. Check the examples given in MS Docs. Patch function in Power Apps (contains video) - Power Apps | Microsoft Docs

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 1,033

#2
Valantis Profile Picture

Valantis 632

#3
11manish Profile Picture

11manish 607

Last 30 days Overall leaderboard