I am trying to make adding a product to an Opportunity Mandatory using a validation rule based on Opportunity Stage and when the Type = New, i have the below which i cant get working, hoping someone can help ?
AND(
OR(
ISPICKVAL(StageName,"Quoting"),
ISPICKVAL(StageName,"Negotiating"),
ISPICKVAL(StageName,"Closed Won"),
ISPICKVAL(StageName,"Sales Forecast"),
ISPICKVAL(Type,"New"),
HasOpportunityLineItem = FALSE
))
7 risposte
AND(
ISPICKVAL(Type,"New"),
HasOpportunityLineItem = FALSE,
OR(
ISPICKVAL(StageName,"Quoting"),
ISPICKVAL(StageName,"Negotiating"),
ISPICKVAL(StageName,"Closed Won"),
ISPICKVAL(StageName,"Sales Forecast"))
)
This should only fire on one of the 4 stages listed above. So if it was set to Close Lost, for example, it shouldn't fire.