Note: This release is in preview. Features described here don’t become generally available until the latest general availability date that Salesforce announces for this release. Before then, and where features are noted as beta, pilot, or developer preview, we can’t guarantee general availability within any particular time frame or at all. Make your purchase decisions only on the basis of generally available products and features.

ConnectApi.EmailMessage

Email message from a case.

This class isn’t available in version 32.0 and later. In version 32.0 and later, ConnectApi.EmailMessageCapability is used.

Important

Subclass of ConnectApi.FeedItemAttachment.

Name Type Description Available Version
direction ConnectApi.Email​MessageDirection Enum The direction of the email message.
  • Inbound—An inbound message (sent by a customer).
  • Outbound—An outbound message (sent to a customer by a support agent).
29.0–31.0
emailMessageId String The ID of the email message. 29.0–31.0
subject String The subject of the email message. 29.0–31.0
textBody String The body of the email message. 29.0–31.0
toAddresses List<ConnectApi.EmailAddress> A list of email addresses to send the message to. 29.0–31.0