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

Patching items to dataverse table creates multiple records

(1) ShareShare
ReportReport
Posted on by

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

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 796 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard