Skip to main content

Hi, I have the following validation rule(see below) which should stop an opportunity from being moved to the stages mentioned in the rule or be created with any of those stages. It seems to work in stopping a user from moving the stage but does not stop a user from creating a new opportunity with the stages mentioned below. The ISNEW() function does not seem to be working for this as far as I can see. Anyone have any idea what could be the issue?

 

(ISNEW()

|| (ISCHANGED(StageName)))

&&

(ISPICKVAL(StageName, "Proposal & Pricing Discussion")

|| ISPICKVAL(StageName, "Verbally Confirmed")

|| ISPICKVAL(StageName, "Proposal & Pricing Creation")

|| ISPICKVAL(StageName, "Booked"))

&& 

(Products_Added_To_Opportunity__c = FALSE)

&&

(DATEVALUE(CreatedDate) > DATE(2023, 01, 01))

3 respostas
  1. 28 de jul. de 2023, 09:41

    Hi,

     

    I think you simply have too many brackets. I personally prefer using AND/OR so try this:

    AND(

    CASE(StageName, "Proposal & Pricing Discussion",1,"Verbally Confirmed",1,"Proposal & Pricing Creation",1,"Booked",1,0)=1,

    Products_Added_To_Opportunity__c = FALSE,

    DATEVALUE(CreatedDate) > DATE(2023, 01, 01),

    OR(

    ISNEW(),ISCHANGED(StageName)))