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
kathir_prakashkathir_prakash 

Entity is locked

Hi all,

 

is it possible to edit the record when its in locked state?

 

Please help me out or give some other suggestions on this?

 

Thank you

 

regards

prakash.k.k.

Pradeep_NavatarPradeep_Navatar

The purpose of record locking is to restrict the users to edit or delete. You will not be able to do it.

FangfangFangfang

But I have happaned the save thing,

In one visualforce page ,the Object can change its property,

but in another page ,the Object can't

I am a fresh,so I very want someone can help me ,thank you!

 

follow is the code:

 

             Participator_Detail_Area__c approvalDetailArea=new Participator_Detail_Area__c();
             approvalDetailArea.Activity_Information__c=RecordId;
             approvalDetailArea.Approve_Type__c='ASM已提交';
             approvalDetailArea.Submit_ASM__c=UserInfo.getUserId();
             approvalDetailArea.Outlet_Amount__c=outletNumber;//门店总数
             insert approvalDetailArea;

 

           //submit the Approval
            Approval.ProcessSubmitRequest req1 = new Approval.ProcessSubmitRequest();   
            req1.setObjectId(approvalDetailArea.Id);
            Approval.ProcessResult result = Approval.process(req1);
            approvalDetailArea.ApprovalId__c=(String)result.getNewWorkitemIds().get(0);
            update approvalDetailArea;

 

Why the approvalDetailArea can't update?