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:
This blog contains some of the Salesforce facts which I have found quite interesting. Happy learning.