You need to sign in to do that
Don't have an account?
Utkarsh1001
Locks on Record in salesforce.
Hi,
I want to know if Salesforce automatically puts lock on any particular Record, while some user is editing that record?
For example.
If User 1 is editing Contact 1`s first name ( custom field) field &
User 2 try to edit its Contact number.
Does this record (Contact 1) gets locked when User 1 is editing it , provided User 1 opens that record for editing first.? And User 2 can not edit it from anywhere ( apex code , standard layout, batch apex etc) till User 1 finishes its job ?
Thanks in advance.
Utkarsh
Yes, Salesforce does lock rows and yes from the moment User 1 started editing until save (or cancel \ rollback) no other process can save the record.
Note that I wrote "no other process can save the record" - other process can read it and in the UI you can even get into Edit mode but you can't save the record if the record was changed between the time you started editing it until you pressed save.
it is a sort of locking the record..when at the same time two different user try to modify same record.
Other type of locking is in case of approval process I hope my first statment is your expected answer.