Salesforce Fact #628 | Related account industry validation using trigger

Suppose we have a scenario where we need to put a validation such that the industry of the related account should be the same on contact. If we update the related account on contact record, it needs to be of the same industry. This can be implemented using trigger logic.

Attached is the screenshot.

Note: The code snippet is only for demonstration purpose and coding best practices have not been covered.

Comments

Popular posts from this blog

Salesforce Fact #192 | Call batch apex from flow

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