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
sarvesh001sarvesh001 

Record Locking

In a recruiting application, Salary is a child object to parent Position object via master-detail relationship.  The min pay and max pay fields of salary object cannot be modified when Position status on the parent is “Approved”.

 

This can be work through Validation rule but how can we lock 

Irish@acc.comIrish@acc.com
Do you want to lock the record??

if yes then this can be done through Record type..
create a record type and hide all the button
sarvesh001sarvesh001

I want to lock the record like in approval rules

 

Irish@acc.comIrish@acc.com
create an approval process and check to lock the record once the status get approved
sarvesh001sarvesh001

without using approval how can we lock record