You need to sign in to do that
Don't have an account?

Can the record Order be locked from Apex code
Hi Force devs
Can we lock the record order from the apex code. not from approval process.
Rgrds
SR
Can we lock the record order from the apex code. not from approval process.
Rgrds
SR
https://www.salesforce.com/us/developer/docs/apexcode/Content/langCon_apex_locking_statements.htm
Where I wanted it is ..want to lock the object Orders once its status changed to "submitted". I could lock if the status changes from the Approval process and here Order status changes to "submitted" from the VF page written by us when user select submitt button.
Otherwise, if you want the lock hte record the same manner as an Approval Process, you could auto submit for approval when the status is changed in an apex trigger.