How to allow process builder and flow to unlock Records?

How to allow process builder and flow to unlock Records?

1. Having a modify all perms on the object (ewww) 2. Writing Apex Code with “Without Sharing” (slightly less eww, but not declarative) We can lock records with Process Builder & Flow now by calling a dummy approval process that just auto-approves anything submitted and locking the record. We can’t unlock the record.

When does process builder run in user mode?

User mode: – In which the permissions, field-level security, and sharing rules of the current user are enforced. Flow runs in user mode. Process Builder runs in system mode.

Is there a way to edit a process in process builder?

The alternative is to delete the entire process, which to me make it tedious to manage the processes using the Process Builder. Is there a way to edit the processe? This was helpful.

How to prevent editing record in Salesforce Stack Exchange?

Create a new checkbox “Record Locked”. Create a workflow that sets the checkbox to true once the level is “Archived” or “Closed”. Optionally, you’d want to also uncheck this when the level changes again to another value. Prevent making any changes when Level equals Archived or Closed unless User is a Sys Admin.

What causes apex trigger to update all related records?

First exception on row 0 with id a03S0000000EqVJIA0; first error: CANNOT_INSERT_UPDATE_ACTIVATE_ENTITY, flag_fsc: execution of AfterUpdate caused by: System.NullPointerException: Attempt to de-reference a null object Trigger.flag_fsc: line 33, column 38: Trigger.flag_fsc: line 39, column 9

When did Siebel allow process builder to unlock Records?

Record Types is not an answer, especially if you are already managing multiple record types to support the client’s business processes. Siebel Had this feature in 1998. Much prefer to lock/unlock via Flow rather than APEX, esp as I’m moving to Lightning and can’t invoke my APEX as easily.

What causes an unexpected exception in apex trigger?

Apex trigger flag_fsc caused an unexpected exception, contact your administrator: flag_fsc: execution of AfterInsert caused by: System.DmlException: Update failed.