You need to sign in to do that
Don't have an account?
petec@i2isys
Formula with And, Or, and Not
Hello,
I'm trying to fire a workflow email for when new business opportunity goes from stage 1 to stage 2.
So the forumla should check to make sure the Oppty Type is not Add-On OR Professional Services. If it's neither of those then it should see if the stage moved from 1 to 2.
I came up with this and it fired no errors, but my tests fail and nothing happens.
AND(NOT(OR( ISPICKVAL(Type, "Add-On"), (ISPICKVAL(Type, "Professional Services")))),( ISPICKVAL(StageName, "2-Align")) ,(PRIORVALUE(StageName)= '1-Prospect'))
Can anyone see where I'm going wrong?
I'm trying to fire a workflow email for when new business opportunity goes from stage 1 to stage 2.
So the forumla should check to make sure the Oppty Type is not Add-On OR Professional Services. If it's neither of those then it should see if the stage moved from 1 to 2.
I came up with this and it fired no errors, but my tests fail and nothing happens.
AND(NOT(OR( ISPICKVAL(Type, "Add-On"), (ISPICKVAL(Type, "Professional Services")))),( ISPICKVAL(StageName, "2-Align")) ,(PRIORVALUE(StageName)= '1-Prospect'))
Can anyone see where I'm going wrong?
All Answers
AND(NOT(OR( ISPICKVAL(Type, 'Add-On'), (ISPICKVAL(Type, 'Professional Services')))),( ISPICKVAL(StageName, '2-Align')) ,(PRIORVALUE(StageName)= '1-Prospect'))
If it works please mark as best answer.
But it did not work.
IF(NOT(OR(ISPICKVAL(Type, "Add-On"),(ISPICKVAL(Type, "Professional Services")))),true,IF(AND(ISPICKVAL(StageName, "2-Align"),(PRIORVALUE(StageName)= '1-Prospect')),true,false))