Two people, one record
When two people edit the same record and both press Save, the second save is refused instead of silently overwriting the first. Here is what each of them sees, and how to carry on.

Sam and Robin work on the same accounts. Both open Proseware Group in the morning. Sam updates the main phone number and saves. A few minutes later Robin, still looking at the version they opened, changes the number of employees and saves too.
In many systems the second save simply wins. Robin's form still held the old phone number, so it writes it back, and Sam's change is gone without anyone noticing. Parsware refuses the second save instead.
We'll go through it with the Field Sales app from the platform's sample solutions, signed in as two different people. Every picture is the real product.
The first save goes through
Sam changes Main Phone and presses Save:

The second save is refused
Robin's form was opened before Sam saved. When Robin changes Number of Employees and presses Save, the save is refused:

Nothing of Robin's has been written, so nothing of Sam's has been overwritten. Robin's edits are still on the screen, so they can see what they meant to change.
Reopen, and make the change again
Robin opens the record again. Sam's new phone number is there:

Robin enters the employee count again and saves, and this time it goes through, because the form is now based on the latest version. Both changes are kept, and with auditing on, the log shows each under the name of the person who made it.
Why "last save wins" is worse than it sounds
The usual behaviour of business software is that the last save wins. It sounds harmless, because the last person to save presumably meant what they saved. The trouble is what else their form held.
Robin didn't mean to set the phone number back to the old one. Robin never touched the phone number. But a form sends every field it shows, and Robin's form still showed the number as it was when they opened it. Under last save wins, Robin's save would have written that old number over Sam's new one, and nobody would have seen it happen:
- Sam would remember changing the number and assume it was done.
- Robin would have no idea the number had been involved at all.
- The next person to ring the customer would use the wrong number.
That is the worst kind of mistake: the one with no error message. Refusing Robin's save turns it into a mistake with a message, at the moment it happens, shown to the one person who can fix it in a few seconds.
What the record and the form each hold
Every record carries a version, a number kept in a column called row_version. It is set
when the record is created and goes up by one on every save, whoever makes it.
A form remembers the version it opened. When Sam and Robin both opened Proseware Group, both forms held, say, version 7.
- Sam saves. The record is at version 7, which matches Sam's form, so the save goes through and the record moves to version 8. Sam's form now holds 8.
- Robin saves. Robin's form still holds 7, but the record is at 8. The versions don't match, so the save changes nothing and Robin sees the message.
- Robin reopens the record. The form now holds 8, with Sam's phone number in it.
- Robin saves again. 8 matches 8, the save goes through, and the record moves to 9.
The comparison and the write are a single database statement: update this record, but only if it is still at version 7. There is no gap between checking and writing for a third save to slip into, so even two saves that arrive in the same millisecond can't both succeed.
The same protection for integrations
An integration writing through the API takes part by sending the version it read with its update.
The record API's update takes only the fields it is changing, plus row_version:
PUT /environments/{environmentId}/data/account/{recordId}
Content-Type: application/json
{
"numberofemployees": 600,
"row_version": 7
}
If the record is still at version 7, the update goes through and the response carries the record at version 8. If somebody saved in between, the update is refused and nothing is written:
{
"status": 400,
"title": "modelapps.record.conflict",
"detail": "Record '3f1c9a40-…' was changed by somebody else while you had it open. Reload it and apply your changes again."
}
The integration's right response is the same as Robin's: read the record again, re-apply its change
to the fresh copy, and try once more. The title is the stable code to check for, whatever language
the message is in.
Sending only the fields you change already protects you from most accidents, because an update that doesn't mention the phone number can't overwrite it. The version closes the rest: two systems changing the same field without knowing about each other.
Get an access token shows how an integration signs in before it calls the API.
Scripts, processes and imports
Not every write has a form behind it, and not every write needs the check.
- A spreadsheet import creates records, so there is no earlier version to compare with.
- A server rule that changes the record being saved works inside that save, so it can't conflict with it.
- A process step that writes a decision back onto a record is usually the only thing changing those fields. If people can edit them on a form at the same time, the form is where the check protects them.
The check is aimed squarely at the case that causes real damage: two people, or two systems, each holding an old copy and both believing theirs is the latest.
Habits that make conflicts rare
A refused save is cheap, but it is still a few seconds of somebody's time. A few habits keep them rare.
- Save and close. A form left open all afternoon holds a copy that gets older by the hour.
- Keep busy records small. If a record's status changes many times a day while people edit its notes, put the notes in a related table. Each note is then its own record, and adding one never conflicts with a status change. Lookups shows the Related tab that makes this painless.
- Let a process own its fields. Fields a process writes, such as an approval outcome, can be read-only on the form, so people never hold an old copy of them. Required, read-only and default controls sets that per form.
- Turn auditing on for the tables people share. When two changes did both happen, the audit log shows them in order, each under its author.
Questions that come up
Does Robin lose what they typed? No. Robin's form keeps every edit on the screen after the refusal, so Robin can see what they meant to change before reopening the record.
Can I turn the check off for a table? No, and you would not want to. It costs nothing on a save that doesn't conflict, which is nearly all of them.
What about two people editing different records? They never meet. The version belongs to one record, so a hundred people can save a hundred different accounts at the same moment.
Does a deleted record conflict? If somebody deleted the record while you had it open, your save can't find it, and you are told so instead.
See it for yourself
You don't need two colleagues to watch this happen. Two browser windows are enough, because each window holds its own copy of the form.
- Open any app with a table you can edit, such as the Field Sales app from the sample solutions, and open one record.
- Open the same record in a second window, side by side with the first.
- In the first window, change one field and choose Save. It saves.
- In the second window, change a different field and choose Save. The save is refused with the message from the start of this article, and your edit stays on the screen.
- Reopen the record in the second window. The first window's change is there. Make your change again and save; this time it goes through.
Try one more thing while you are there: save in the second window several times in a row, changing a field each time. Every save goes through, because after each one the form holds the new version. The check never gets in the way of one person working on a record; it only speaks up when somebody else got there first.
If auditing is on for the table, open the record's entries in Audit Logs afterwards. You will see both changes, in order, each under your name, and nothing from the refused save, because nothing was written.
Where this fits
This article closes the Tables and data series. Between them, its articles cover what a table can hold, how its records link, and the rules that keep its data right:
- what each field type stores, and the controls people use to fill it in;
- lookups, relationships and trees;
- states and reasons, reference numbers and uniqueness and overlap rules;
- files, imports and auditing.
How it works
Every record has a version number, which goes up by one each time the record is saved. A form remembers the version it opened. When you save, it sends that version back, and the database only accepts the save if the record is still at that version. If someone saved in between, the versions don't match, the save changes nothing, and you get the message above.
The check and the write are one database statement, so two saves that arrive at exactly the same moment can't both slip through. Saving the same form several times in a row is fine: after each save the form holds the new version.
You don't set anything up for this. It is on for every table. An integration writing through the
API can take part the same way, by sending back the row_version it read with its update.
Next: the model-driven apps series, starting with an app and the people it's shared with.