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
Sai LaasyaSai Laasya 

how to access email fields

Can anyone please let me know how to access fields of email object
Best Answer chosen by Sai Laasya
Ramu_SFDCRamu_SFDC
You can update the case field by writing an after insert trigger on emailmessage object. You can follow the steps explained in the below article

https://developer.salesforce.com/blogs/developer-relations/2009/10/one-of-the-things-about-working-for-a-company-that-innovates-at-such-an-incredible-pace-is-that-you-are-constantly-tasked-wit.html

The field definition is explained in the below article

https://www.salesforce.com/us/developer/docs/api/Content/sforce_api_objects_emailmessage.htm

All Answers

Ramu_SFDCRamu_SFDC
Can you please confirm if you are talking about 'Email' object or 'Emailmessage' object as there is no such object with the name 'Email' as far as my knowledge goes.

if you need to access 'Emailmessage' object fields, the below link would help

http://www.salesforce.com/us/developer/docs/api/index_Left.htm#StartTopic=Content/sforce_api_objects_emailmessage.htm?SearchType=Stem
Sai LaasyaSai Laasya
Hi Ramu

Thank you for replying. I am talking about Email Message object. I need to place email body of an inbound email message and place it into a rich text area field on case. Is this possible? Please let me know

Thanks in Advance
Ramu_SFDCRamu_SFDC
You can update the case field by writing an after insert trigger on emailmessage object. You can follow the steps explained in the below article

https://developer.salesforce.com/blogs/developer-relations/2009/10/one-of-the-things-about-working-for-a-company-that-innovates-at-such-an-incredible-pace-is-that-you-are-constantly-tasked-wit.html

The field definition is explained in the below article

https://www.salesforce.com/us/developer/docs/api/Content/sforce_api_objects_emailmessage.htm
This was selected as the best answer