function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Meredith JenMeredith Jen 

Hi All, have a workflow question?

Hi, 

Could any one of you help me on this . 

I would like to do the below requirement via workflow ?

We would like a new workflow on  "XYZ" record type Cases to:

*         Upon a person taking ownership from the "ABC" queue  Owner

*         Case status should automatically be changed to "In Review"

.I tried the below code but it is not working . in workflow . 

AND(
Record_Type_Name__c = "XYZ",

ISCHANGED(OwnerId),

OR(
OwnerId = $User.Id,
AND( LEFT(PRIORVALUE(OwnerId),3) = '00G', LEFT(OwnerId,3) = '005' )

)

)

Please help me on this . Thanks . 
 
Raj VakatiRaj Vakati
I think below formula will work for you.
AND( 
RecordType.Name = 'XYX' ,
ISCHANGED(OwnerId) )