cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Advocate I
Advocate I

Patch Function PowerApps

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

2 ACCEPTED SOLUTIONS

Accepted Solutions
Highlighted
Community Champion
Community Champion

Re: Patch Function PowerApps

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.

View solution in original post

Highlighted
Community Champion
Community Champion

Re: Patch Function PowerApps

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.

View solution in original post

4 REPLIES 4
Highlighted
Community Champion
Community Champion

Re: Patch Function PowerApps

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.

View solution in original post

Highlighted
Community Champion
Community Champion

Re: Patch Function PowerApps

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.

View solution in original post

Highlighted
Advocate I
Advocate I

Re: Patch Function PowerApps

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

 

Highlighted
Community Support
Community Support

Re: Patch Function PowerApps

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,

Community Support Team _ Phoebe Liu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
August 2020 Community Challenge: Can You Solve These?

August 2020 Community Challenge: Can You Solve These?

We're excited to announce our first cross-community 'Can You Solve These?' challenge!

secondImage

Return to Workplace

Reopen responsibly, monitor intelligently, and protect continuously with solutions for a safer work environment.

secondImage

Super Users Coming in August

We are excited for the next Super User season.

secondImage

Community User Group Member Badges

FIll out a quick form to claim your community user group member badge today!

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (7,116)