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
Ketan MahetKetan Mahet 

Capture Email Context before sending an Email...

Hi,
   We have different watch list added to each Case. On sending manual email from any case, we want to add the watch list users to email CC. Is there any outbox of box functionality available in SFDC? As an alternative, I thought to capture the email context going outside of SFDC, add CC and send email.

Please guide.  
Best Answer chosen by Ketan Mahet
Keyur  ModiKeyur Modi
Hi ,
IF you want to capture the outgoing Email's detail then you can use below query.
SELECT FromName,FromAddress,CcAddress,Incoming,Status,Subject,TextBody,ToAddress FROM EmailMessage WHERE Incoming = FALSE  AND  parentId=CaseId;
use this query where you need to pass particular Case ID in place of caseId .. this queary will give you the detail about the outgoing Email .
You can create VisualForce page to see this data.

Thanks,
Keyur Modi