Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Microsoft Dataverse
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

 

  • ansrikanth Profile Picture
    329 on at
    Re: Patching items to dataverse table creates multiple records

    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

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Power Apps - Microsoft Dataverse

#1
mmbr1606 Profile Picture

mmbr1606 22 Super User 2025 Season 1

#2
stampcoin Profile Picture

stampcoin 17

#3
ankit_singhal Profile Picture

ankit_singhal 11 Super User 2025 Season 1

Overall leaderboard

Featured topics