+ Start a Discussion
ABRAR-UL-HAQABRAR-UL-HAQ 

Before changing the state from "Quote Processing" to "Quote Sent" You must first create a Quote .

 

IF(ISPICKVAL(StageName ,"Quote Sent") && Number_of_Quotes__c = 0, true, false)

 

SteveMo__cSteveMo__c

Are you trying to create a Validation Rule?

SwarnasankhaSwarnasankha

Based on the post Header, I am to belief that you are trying to create a Validation Rule. Please try using the following expression for the Error Condition Formula:

 

 

AND

(

ISCHANGED(StageName),

ISPICKVAL(PRIORVALUE(StageName), "Quote Processing"),

ISPICKVAL(StageName, "Quote Sent"),

Number_of_Quotes__c = 0

)

 

SteveMo__cSteveMo__c

If you need to have a Quote in order to set the picklist the Quote sent you could just use this:

 

AND(ISPICKVAL(StageName ,"Quote Sent"), Number_of_Quotes__c < 1)