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
Post a Comment