I'm working on a canvas app that uses Dynamics 365 as a data source (new territory for me, I usualy use SQL or SharePoint) and seeing strange behaviour around patches, refreshes and displaying data.
Patch does not seem to automatically trigger a refresh, and, even when I do Refresh manually, I don't see the results of the Patch unless I refresh multiple times and even then, in some cases I only see the updated results when I exit and re-enter the screen.
The data is updated in Dynamics, it just isn't displaying reliably in PowerApps.
I have even see examples of the results in controls not matching what is displayed in the formula bar result view. In the example below, the same Filter is used in the Items property for both the DataTable and the Gallery. There should be 3 records (as shown in the formula bar result) but only 2 appear in the DataTable while there are 3 in the Gallery.
Is it usual to see such inconsistent behaviour when working with D365 or is this a glitch (like Import/Export being broken for the past few days)? If this is normal, are there work-arounds to try to get consistent results?
At the moment I am trying to build my screens so that any data change requires the user to open a new screen, after the Patch a Refresh is issued, another Refresh is issued OnHidden of the screen and a further Refresh on the OnVisible of the next screen which mostly seems to resolve the problem, but it is far from ideal.