You need to sign in to do that
Don't have an account?
Paula Jarvis 4
Opportunity Validation Rule Not Working as Expected
I have this VR and I only want these Profiles to be able to set the Opportunity Stage = Closed/Won however other Users can still set the Stage = Closed/Won.
Opportunity Validation Rule ~ Salesforce - Enterprise EditionAND(
$Profile.Name ="Custom Sales VP",
$Profile.Name ="Custom Sales Operations",
$Profile.Name="Custom Billing Administrator",
$Profile.Name="System Administrator",
$Profile.Name ="Custom Finance Data Loader",
ISCHANGED(StageName),
TEXT(StageName) = "Closed Won"
)
Opportunity Validation Rule ~ Salesforce - Enterprise EditionAND(
$Profile.Name ="Custom Sales VP",
$Profile.Name ="Custom Sales Operations",
$Profile.Name="Custom Billing Administrator",
$Profile.Name="System Administrator",
$Profile.Name ="Custom Finance Data Loader",
ISCHANGED(StageName),
TEXT(StageName) = "Closed Won"
)
ispickval(StageName, 'Closed Won')
Because it takes 2 parameters, one is field and second one is picklist value.
Regards,
Mahesh
All Answers
StageName is a picklist field and you have to use ispickval(StageName, 'Closed Won') function to check the value.
Regards,
Mahesh
ispickval(StageName, 'Closed Won')
Because it takes 2 parameters, one is field and second one is picklist value.
Regards,
Mahesh
Opportunity Validation Rule ~ Salesforce - Enterprise EditionAND(
$Profile.Name ="Custom Sales VP",
$Profile.Name ="Custom Sales Operations",
$Profile.Name="Custom Billing Administrator",
$Profile.Name="System Administrator",
$Profile.Name ="Custom Finance Data Loader",
ISCHANGED(StageName),
TEXT(StageName) = "Closed/Won"
)
AND(
OR(ISPICKVAL(StageName,"Proposed / Evaluating"),
ISPICKVAL(StageName,"Qualified"),
ISPICKVAL(StageName,"Negotiating"),
ISPICKVAL(StageName,"Accepted"),
ISPICKVAL(StageName,"Closed Won"),
ISPICKVAL(StageName,"Closed Lost"),
ISPICKVAL(StageName,"Closed - No Opportunity")))
Regards,
Mahesh
AND( !OR(
$Profile.Name ="Custom Sales VP",
$Profile.Name ="Custom Sales Operations",
$Profile.Name="Custom Billing Administrator",
$Profile.Name="System Administrator",
$Profile.Name ="Custom Finance Data Loader"),
ISCHANGED(StageName),
ISPICKVAL(StageName, "Closed Won")
The formula works like this If the user is not ( the "!" works as the NOT() Function does) one of the mentioned profiles, and the Stage was changed to the value of Closed Won, the rule fires. Hope this does the trick for you,
Parker