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
Firas Taamallah 18Firas Taamallah 18 

How can i lock object from Editing?

Hi , 

Once opportunity is passed to Closed Won , i want to lock it from editing 
How can i achieve this?
Best Answer chosen by Firas Taamallah 18
RituSharmaRituSharma
These are your options:
1. Create validation rule - But you can check here only for certain field changes. May be along with record type(with page layout).
2. Using trigger.
3. Submit record for approval and assign to a queue. Queue can be empty or have only system admins. This way it will be locked for other users.
4. If you have given only edit permission at profiles level, you may have separate sharing rules for closed won status to give only read permission to needed roles/groups.