EmailMessage

An email message.

Supported Calls

create(), delete(), query(), retrieve(), getDeleted(), getUpdated(), describeSObjects()

Special Access Rules

Customer Portal users have read access to this object.

Fields

Field Field Type Field Properties Description
ActivityId reference Create

Filter

Nillable

ID of the activity that is associated with the email. Usually represents an open task that is created for the case owner when a new unread email message is received. For information on IDs, see ID Field Type.
BccAddress string Create

Filter

Nillable

The addresses that were sent a blind carbon copy of the email.
CcAddress string Create

Filter

Nillable

The addresses that were sent a carbon copy of the email.
FromAddress email Create

Filter

Nillable

The address that originated the email.
FromName string Create

Filter

Nillable

The sender’s name.
HasAttachment boolean Defaulted on create

Filter

Indicates whether the email was sent with an attachment (true) or not (false).
Headers textarea Create

Nillable

The Internet message headers of the incoming email. Used for debugging and tracing purposes. Does not apply to outgoing emails.
HtmlBody textarea Create

Nillable

The body of the email in HTML format.
Incoming boolean Create

Defaulted on create

Filter

Indicates whether the email was received (true) or sent (false).
IsDeleted boolean Defaulted on create

Filter

Indicates whether the object has been moved to the Recycle Bin (true) or not (false). Label is Deleted.

MessageDate dateTime Create

Filter

Nillable

The date the email was created.
ParentId ID Create

Filter

ID of the Case to which the email is associated.
Status picklist Create

Filter

Restricted picklist

Read only. The status of the email. For example, “New,” “Unread,” “Replied,” “Sent.”
Subject string Create

Filter

Nillable

The subject line of the email.
TextBody textarea Create

Nillable

The body of the email, in plain text format.
ToAddress string Create

Filter

Nillable

The address of the email’s recipient.

Usage

This object supports the Email-to-Case feature, which allows email sent to one of your company’s email addresses to automatically create a new case in Salesforce. See "What are Email Services?" in the Salesforce online help for more information.

See Also:
Case
Standard and Custom Object Basics
© Copyright 2000-2008 salesforce.com, inc. All rights reserved.
Various trademarks held by their respective owners.