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
Josh Jones 9Josh Jones 9 

How to track if communication is "to" or "from" a lead

It would be useful to track the "direction" of communication to determine the intensity and responsiveness of the account or contact.  Currently, Salesforce says "you sent an email to [contact]" even when the email was sent to me from the contact.  Is it possible to distinguish when an email is "to" a contact and "from" a contact?
Raj VakatiRaj Vakati
You can able to use the email message object and link to the lead 

https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_emailmessage.htm

https://help.salesforce.com/articleView?id=000239922&type=1