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
Anuj Joshi 42Anuj Joshi 42 

case owner change

Hi All,

I have  a requirement. There are 2 queues, lets say A and B. There is a lookup field to user and other field is a picklist field which is the status field. There is a trigger written in before insert and before update which updates the case owner to the value of the lookup field(which is the user).

Now my requirement is when the case owner is queue B, and status is closed, the owner must be changed to the value of lookup field. If the status is not closed then owner should not change. I am unable to get it with trigger.

Kindly provide me solution.

Thanks,
Anuj
Saravana Muthu 8Saravana Muthu 8
Hi,

Yes, you can achieve it using process builder.

Step 1: Select 'Case' as object.

User-added image

Step 2: Select the criteria as below.

User-added image
Step 3: Update records and choose 'Case' then update OnwerId=User__c field.

User-added image

Please let me know if you can able to follow these steps.

Don't forget to mark your thread as 'SOLVED' with the answer that best helps you.

Thanks,
Sarav
Sweet Potato Tec