You need to sign in to do that
Don't have an account?
Workflow formula check Stage change
Hello, I need to create a workflow rule that triggers when the opportunity stage changes and sends an email, as long as it doesn't change to some values, this is what I got that isn't working:
IF( ISCHANGED(StageName) AND ( NOT(ISPICKVAL(StageName, "Value 1")), NOT(ISPICKVAL(StageName, "Value 2")), NOT(ISPICKVAL(StageName, "Value 3")), NOT(ISPICKVAL(StageName, "Value 4")) ))
You don't need an IF condition there. You just have to wrap them all inside an AND statement. I would highly recommend to use a CASE function here because you have multiple values to be compared and a CASE function is the way to go for such scenarios. Your formula should be as simply as this
That will work !
@Lee - The formula you have posted wraps all the negative conditions within an OR statement which is logically incorrect and will yield the wrong results.
All Answers
AND(ISCHANGED(StageName),
OR(NOT(ISPICKVAL(StageName, "Value 1")),
NOT(ISPICKVAL(SageName, "Value 2")),
NOT(ISPICKVAL(StageName, "Value 3")),
NOT(ISPICKVAL(StageName, "Value 4")),
)
)
You don't need an IF condition there. You just have to wrap them all inside an AND statement. I would highly recommend to use a CASE function here because you have multiple values to be compared and a CASE function is the way to go for such scenarios. Your formula should be as simply as this
That will work !
@Lee - The formula you have posted wraps all the negative conditions within an OR statement which is logically incorrect and will yield the wrong results.