function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
mbruso2mbruso2 

Bypassing validation rules on summary formula recalculation

I have a Master Detail relationship between Opportunities and a custom object.  The Opportunity record has a Summary Formula that uses the custom object.  We also have a Validation Rule on the Opportunity object.  Is there a way to construct the Validation Rule to skip if a custom object record is updated.  According the documentation, the Validation Rule fires when the Summary Formula is recalculated, is there way to skip this?

AshlekhAshlekh

Hi,

 

Instead of validation rule you have to write a trigger to check condation of error which you have written in validation rule on before insert trigger.

By this your record will validate only when it is going to insert not when record is updated.

 

Thanks

Ashlekh

 

If this post helps you then please mark it as solution and don't forget to give me kudo's

 

 

MarcPannenberg.ax1843MarcPannenberg.ax1843

Would you mind sharing your validation rule and the roll-up field definition?

 

I wonder if you could add NOT(ISCHANGED (rollupfield__c)) to the valiation rule to invalidate the validation rule criteria.