function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
HaukurHaukur 

Lock an object (Case)

Hi
 
Is it possible somehow to lock object when it is opened.  Im working with cases and when user opens a case another user must not open it and change it at the same time.  Is there any concurrency mechanic in Salesforce?
 
Regards,
Haukur
Mike LeachMike Leach

Non-owners modifying cases is allowed, but can cause concurrency problems. Case assignment and esclation rules are the intended solution to this problem.

KFretKFret
Or just use queues.  If a case is in a queue, the first thing someone should do is "accept" it.  Then it's theirs, and they can edit it as much as they like.  When they're done, they close it, assign it to a colleague, or assign it back to the queue.

Think of the queue as an inbox -- take the case out of the queue, and put it on your desk.  (accept it.)  Work on it.  Then give it to someone else (assign it away).

Train your teams to follow this concept.