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
fiona gentryfiona gentry 

Need Trigger Code to Queue when Email subject is AIRTEL

Dear Friends,

At a conceptual level,  need a Trigger code  to do four things 

1 Query for Salesforce queue name Prepaid
2 Iterate over the Email 2 Case records for Record Type as "Executive Response " I get (from Trigger.new)
3 Call .contains() on the Case's Subject to see if your target word exists
4 Update the OwnerId to your queue if it does

Thanks In Advance,your help is highly appreciated

Fiona
Best Answer chosen by fiona gentry
PriyaPriya (Salesforce Developers) 

Hey Fiona,

The developer community recommends providing any attempts/code you've started, any errors you're getting, or where exactly you're struggling in achieving this while posting a question.

Thanks


 

All Answers

PriyaPriya (Salesforce Developers) 

Hey Fiona,

The developer community recommends providing any attempts/code you've started, any errors you're getting, or where exactly you're struggling in achieving this while posting a question.

Thanks


 
This was selected as the best answer
fiona gentryfiona gentry
appreciate if you can reply for this https://developer.salesforce.com/forums/ForumsMain?id=9062I000000UeY4QAK