There are certain simple scenarios where we think we have to write code and then again writing apex , test class and coverage..a lot hectic things.But if we thinks Configuration Power so many of such things can be avoided and can be handeled easily.
Here i am disscusssig some configuration Tips though simple but very efficient .
If You want to Validate Parent Object on behalf of Child Records.
Approach : Avoid Trigger
Create RollupSummary ,Set Filter Criteria On Rollup Field.
Use RollUp Summary In Validation Rule on Parent
Its Done.
Use apex Trigger only when there is complex Scenarion.
Regards
Clouder
Simplifying enterprise architecture
Here i am disscusssig some configuration Tips though simple but very efficient .
If You want to Validate Parent Object on behalf of Child Records.
Approach : Avoid Trigger
Create RollupSummary ,Set Filter Criteria On Rollup Field.
Use RollUp Summary In Validation Rule on Parent
Its Done.
Use apex Trigger only when there is complex Scenarion.
Regards
Clouder
Simplifying enterprise architecture
No comments:
Post a Comment