Salesforce Fact #630 | LockType in ProcessDefinition

ProcessDefinition object stores the details of the approval processes in the org. It has a field named LockType. Each record in approval is always locked. Now based on the editability of the locked record, a locked record can only be edited by admin and by the current approvers.

If the locked record can only be edited by Admin, the value of this field is 'Admin' & if the record is editable by Admin and the current approvers, the value of this field is 'WorkItem'.

Reference: https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_processdefinition.htm

Comments

Popular posts from this blog

Salesforce Fact #192 | Call batch apex from flow

Salesforce Fact #457 | Get current user role name in flow