Showing results for 
Search instead for 
Did you mean: 
Advocate III
Advocate III

Save conflicts with Azure SQL as datasource

I have developed a canvas app that connects to an Azure SQL table.  Users can create new records or edit existing ones using a form control and this all works fine.  My issue now though is that multiple users can be in records at the same time.  As an example user A and user B could have the same record open.  If user A makes some changes and saves the form their changes will be saved but then if user B makes changes these overwrite anything changed by user A.


I have read about using the Errors() function to check is a conflict occurs when saving the record but even when I have two users saving the same record there is never an error.  I'm not sure if this is because I am using SQL as the datasource?


I'd be really grateful if someone could point me in the right direction, whether that's letting me know if Errors() should work for SQL or if there's another way of doing this.  Thanks in advance for your help.

Frequent Visitor

Hi gj84uw,


an idea of mine is, that you could save the record you want to edit in a variable before you edit it and then before you submit your changes, you could do a lookup to the record you want to change and compare it to your variable, to see if it was updated in azure while you were entering your changes.




Super User
Super User

Helpful resources

Super User 2 - 2022 Congratulations 768x460.png

Welcome Super Users

The Super User program for 2022 - Season 2 has kicked off!

Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Users online (2,477)