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.
Congratulations to our 2026 Super Users!
Congratulations to our 2025 community superstars!
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Vish WR 1,074
Valantis 639
11manish 606