Notifications
Announcements
SQL Server provides a row versioning mechanism using rowversion (or timestamp) columns.
rowversion
timestamp
Add a rowversion column to your SQL table:
ALTER TABLE YourTable ADD RowVersionColumn ROWVERSION;
Retrieve the row version when loading data into your Canvas app:
Check row version before updating:
Modify the SQL Update Query:
UPDATE YourTable SET Column1 = @NewValue, Column2 = @NewValue2 WHERE ID = @RecordID AND RowVersionColumn = @StoredRowVersion;
Check affected rows:
If data integrity is highly critical, you can implement record locking:
LockedBy
UserID
🔥 Downside: Can cause records to remain locked if a user forgets to save.
datetime
If using Power Automate or SQL Patch, add an extra check before updating:
If( LastModified <> LookUp(SQLTable, ID = SelectedID).LastModified, Notify("Data has changed! Refresh and try again.", NotificationType.Error), Patch(SQLTable, Lookup(SQLTable, ID = SelectedID), {Column1: NewValue}) )
LastModified
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.
In our never-ending quest to improve we are simplifying the forum hierarchy…
We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
WarrenBelz 717 Most Valuable Professional
Michael E. Gernaey 329 Super User 2025 Season 2
Power Platform 1919 268