Salesforce Fact #870 | Lock selected records from list view using screen flow
With the latest release, we can now lock and unlock records using flow action.
We can create a screen flow which would accept the selected records from the list view and would lock the records using Lock Record action. We need to keep a check before locking the record and it will be locked if it is not locked yet.
Attached are the screenshots.
Note: Lock and Unlock record operation is counted as one DML operation each. So, it is not a good practice to call the action inside loop. In this example, it has been called inside loop since the lock action currently supports single recordid, not list of ids.
Comments
Post a Comment