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
VINAYAKVINAYAK 

how to display the status of email message

Hi

 

I am querying the EmailMessge object and i am getting status as numeric is ;1 ,2..5 however for display purpose i need the status like sent received new Read and Forwarded depending up on the numbers ie; for 1,2,3,4 and 5 respectively this is my query

 

objEmail = [Select e.Id,e.ToAddress, e.TextBody, e.Subject, e.Status, e.MessageDate, e.FromName, e.FromAddress, e.ParentId From EmailMessage e where

e.ParentId =:objCase.Id];

 

and then i ma using objEmail.FeildName to display the data please help

 

Regards

imuinoimuino

Here is the documentation for the EmailMessage object

http://www.salesforce.com/us/developer/docs/api/index_Left.htm#StartTopic=Content/sforce_api_quickstart_steps.htm

Seach for it on index theres all its information