You need to sign in to do that
Don't have an account?
Sunshine2
Alert if Case Status updated inappropriately
I'm trying to create an email notification to notify the QA manager when someone outside of the QA queue modifies the status of a case currently in QA. I can't modify profiles to address this issue because these people may need to modify the case when it is in their own queue. I tried the following based on the suggested validation rules but keep getting an error. I currently have only one user ID but would acually have 3 who would be able to move the status w/o it sending the notification. Can anybody help? Thanks.
AND (
ISCHANGED( Status ) ,
OR (
ISPICKVAL( PRIORVALUE ( Status ) , "03- In QA" ),
ISPICKVAL ( PRIORVALUE (Status ), "08- In QA for Testing on Production" )),
$User.Id <> "00530000000zqkw"
)
I also tried
AND (
ISCHANGED( Status ) ,
OR (
ISPICKVAL( PRIORVALUE ( Status ) , "03- In QA" ),
ISPICKVAL ( PRIORVALUE (Status ), "08- In QA for Testing on Production" )),
NOT ( $User.Id = "00530000000zqkw" )
Hello,
Cheryl,
Thanks for your reply. Unfortunately I discovered PriorValue doesn't work for what I am trying to accomplish. I'm going to have to go at it from a different direction. Thanks again.
The PRIORVALUE() function should work but you have to nullify it for new records. If you do not use the ISNEW() function along with it the system will not allow you to use it.
This should work for what you want it to do. If the record is new or the user has the Id listed it will not error out at all. If those are not true it will error out if the prior value equals the two values that you listed. Please make sure that the text values used in the Status tests are exact matches to the values in the field.
You need to make sure you are using the Evaluation Criteria of "Every time a record is created or edited". If you utilize the first or second you normally get the priorvalue error.