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
Akshay MhetreAkshay Mhetre 

How to Assign the case to Queue with apex.

Case Object--Lookup---AML_Check__c Object

When BECVO(Profile)-users update the picklist value(BE_CVO_Decision__c) to "False Positive" 
on AML_Check__c Object record,

---then---

Status field on Case Object record will also change to'Pending with CMU'.
I want to assigne those case to 'CMU QUEUE'.
By considering these conditions please tell me the code,How can I assign that case to 'CMU QUEUE'.

Sai PraveenSai Praveen (Salesforce Developers) 
Hi Akshay,

If status field only changes to Pending with CMU on the above process then you may write a trigger with the above condition and assign channge the ownerid of the case. 

Please let me know if you have tried this approach and if not please try the above procedure and let me know if you face any issue.

You can even use the record trigger flow in the above scenerio.

If this solution helps, Please mark it as best answer.

Thanks,