Morning all. We have 7 stages on the Case object at the moment:
New
In Progress
Waiting on Customer
Waiting on CCC
Awaiting Supplier
Awaiting Site Visit
Closed - Complete
Closed - Not Required
I would like all cases to be marked as 'In Progress' before they can be moved to any further stage. However, if a user wants to move a case from New straight to Closed - Not Required, they should be able to do so without the validation rule firing.
I've had a go playing around but the rule is firing when I try to create a new case and can't figure out why.
Thanks in advance!
Eric Praud (Activ8 Solar Energies) Forum Ambassador
Oops, forgot an AND. Try this:
AND(
ISCHANGED( Status ),
OR(
AND(PRIORVALUE(Status)="New", CASE(Status,"Closed",1,"In Progress",1,0)=0),
AND(
TEXT(Status) <> "Closed - Not required",
CASE(Status ,
"New",1,
"In Progress",2,
3 )
>
CASE(PRIORVALUE(Status) ,
"New",1,
"In Progress",2,
3 ) + 1
)))
Also, did you make sure New and In Progress were the right API values?
If this still doesn't work, can you please generate a debug log under your name, recreate the issue, then open the logs and search for the validation rule APi name. It will give you each field value at runtime