0

Is that possible to restrict/lock the record on a specific status? I have few status when those status changed I want to lock the record so user does not change the record, I'm not sure if this is possible using declarative or do I have to use Trigger any help ?

for an example, if my status is changed to "complete" or "void" or "rejected" than lock the record.

2
  • Are you trying to do this with an approval process? Why not a Validation Rule? More generally, what have you tried? Where are you stuck?
    – David Reed
    Commented May 21, 2022 at 3:02
  • I already have approval process implemented, I'm asking if this is possible doing the declarative or require programmatic.
    – Nick
    Commented May 21, 2022 at 3:17

1 Answer 1

1

It is possible to lock a record is using an Approval Process. The locking feature is a standard feature provided by Salesforce and the entire record will be locked.

You just need to setup an Approval Process for an object (in this case, your custom object) and set the criteria for the record to enter the approval process (the stages you would like to lock). Once you set the initial criteria, the Initial Submission Action will include Record Lock.

enter image description here

enter image description here

You can set the record edit ability settings to ‘Administrators’ only OR currently assigned approver.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .