+ Start a Discussion
myanceymyancey 

Picklists and Priorvalue

There is something I don't understand going on here.  This validation rule dosen't get triggered if i change the Level from Level 2 to Level 1.

 

AND (  /*   RecordTypeId = "012800000003VEx",                                          Tech Spt Case */
            ISPICKVAL( Level__c , "Level1"),
            ISPICKVAL(PRIORVALUE(Level__c), "Level 2")
         )

 

So, I created a test field "Level - Previous"  [Text 15] and a workfliow/ field update to try to understand why not.

 

ISCHANGED (Level__c)            Workflow rule

PRIORVALUE(Level__c)           Field Update  to Case: Level - Previous

 

When I change the Level, Level - Prevoius contains  a value 1, 2 or 3 with the correct level, but it does not contain the text "Level 1" or "Level 2" or "Level 3" - it just comntains the number 1, 2 or 3.  Why is that?

 

Is this why my workflow isn't firing?

myanceymyancey

Well, just reviewing my post, I discovered the error of my workflow.  It is missing a space between "Level" and "1" .  But, this still doesn't expain the odd behavior with Level - Previous 

Ankit AroraAnkit Arora

Is your problem resolved?

 

 

Thanks
Ankit Arora

 

YuckleYuckle

Yes.  We created a custom field to use for this where we had more control over visibility.

Ankit AroraAnkit Arora

Great !! Thanks for sharing it :)

 

 

Thanks
Ankit Arora