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 PowerApps
Power Apps
Answered

Patch Function PowerApps

(0) ShareShare
ReportReport
Posted on by 71

Hi All,

 

We have below queries regarding the Patch function.

 

1. Does Patch requires the data source to be refreshed before we perform the Patch operation?

2. Will Patch function refresh the DataSource and we can see updated values back immediately or we need to perform refresh after the patch.?

3. How to know if the Patch was successful?

4. When doing an insert with Patch does it first inserts a blank row and then updates the values back into the row?

 

We are concerned with the above queries as we have observed inconsistent behaviour with the Patch Function.

 

Much appreciated for any help!

 

Thanks

ThreeAtion

Categories:
I have the same question (0)
  • Verified answer
    WarrenBelz Profile Picture
    154,797 Most Valuable Professional on at

    Hi @sumitmukund ,

    Your questions

    1. Does Patch requires the data source to be refreshed before we perform the Patch operation?

    No

    2. Will Patch function refresh the DataSource and we can see updated values back immediately or we need to perform refresh after the patch.?
    No and Yes(Refresh needed)

    3. How to know if the Patch was successful?

    Refresh and do a lookup is probably the best, but you may get better answers

    4. When doing an insert with Patch does it first inserts a blank row and then updates the values back into the row?
    I do not believe so

    The main thing I wanted to tell you here is that there are some bugs, one in particular is writing to existing records where the target value is blank. I always use UpdateIf for existing records and have found it very reliable. You can also update multiple matching records without needing a ForAll loop.

     

    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.

  • Verified answer
    WarrenBelz Profile Picture
    154,797 Most Valuable Professional on at

    Hi @sumitmukund ,

    Just checking if you got the result you were looking for on this thread. Happy to help further if not.

     

    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.

  • sumitmukund Profile Picture
    71 on at

    Hi @WarrenBelz 

     

    Firstly thank you so much for an insightful response. We are trying to evaluate the performance and reliability of the UpdateIf function as suggested.

     

    Thanks

    ThreeAtion

     

  • v-yutliu-msft Profile Picture
    Microsoft Employee on at

    Hi @sumitmukund ,

    If you still have any question about patch function or updateif function, you are welcome to post your problem here.

    If you do not have any other problem, could you change your issue's status to "Answered"?

     

    Thanks!

     

     

    Best regards,

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 March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 530

#2
WarrenBelz Profile Picture

WarrenBelz 459 Most Valuable Professional

#3
Haque Profile Picture

Haque 314

Last 30 days Overall leaderboard