Salesforce Fact #473 | Restrict account create/update for all users

Suppose we need to disable the account create and update access for the entire org for a particular course of time.

We can make use of hierarchical custom settings and validation rule to implement this. We can create a hierarchical custom settings with a checkbox field and set it to true in the organization level. Then, use that value in the validation rule. Once the freeze period is over, we can set the flag to false in custom settings.

Attached are the screenshots.

Note: The profile and user level custom settings records need to be disabled/removed in order to ensure the org level value is considered.







Comments

Popular posts from this blog

Salesforce Fact #192 | Call batch apex from flow

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