You need to sign in to do that
Don't have an account?

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
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
Yes, you can achieve it using process builder.
Step 1: Select 'Case' as object.
Step 2: Select the criteria as below.
Step 3: Update records and choose 'Case' then update OnwerId=User__c field.
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