Salesforce Fact #848 | Trigger validation on locked records

Suppose we want to put a validation that if an account record is locked, we cannot create any related record for example Contact.

Attached is a sample trigger code:






Comments

Popular posts from this blog

Salesforce Fact #192 | Call batch apex from flow

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