Skip to main content
I have a validation rule on the Opportunity Object that if the Opportunity Create date is greater than 12/31/2019 then a group of fields are required.  It works but it is triggering when we try to update the Account Object.  I only want this validation rule to run when the opportunity is edited to meet criteria (not the account).  Is my formula wrong? 

 

AND(

 

OR(

 

  ISNEW(),

 

   DATEVALUE(CreatedDate) > Date(2019,12,31)

 

)

 

&& 

 

OR(

 

ISBLANK (TEXT(Market_Code__c)),

 

ISBLANK (TEXT(Product_of_Interest__c)),

 

ISBLANK (TEXT(Job_Code__c)),

 

ISBLANK (TEXT(Segment__c)),

 

ISBLANK (Date_Required__c))

 

)
6 risposte
  1. 15 apr 2021, 13:23
    PS.  I am just screatching the surface on this in my Dev org, but it does look promising.  I have not tested in it your exact scenario, so as the automobile makers say "your mileage may vary"