+ Start a Discussion
SFDC 1904SFDC 1904 

What will be SOQL query for inboundemail object?

Best Answer chosen by SFDC 1904
LBKLBK
Are you looking for EmailMessage object?

Your SOQL query would be like this.
 
SELECT ActivityId,BccAddress,CcAddress,CreatedById,CreatedDate,FromAddress,FromName,HasAttachment,Headers,HtmlBody,Id,Incoming,IsDeleted,IsExternallyVisible,LastModifiedById,LastModifiedDate,MessageDate,MessageIdentifier,ParentId,RelatedToId,ReplyToEmailMessageId,Status,Subject,SystemModstamp,TextBody,ThreadIdentifier,ToAddress,ValidatedFromAddress FROM EmailMessage