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.

Subclass of ConnectApi.FeedItemAttachment.

NameTypeDescriptionAvailable Version
directionConnectApi.Email​MessageDirection EnumThe 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
emailMessageIdStringThe ID of the email message.29.0–31.0
subjectStringThe subject of the email message.29.0–31.0
textBodyStringThe body of the email message.29.0–31.0
toAddressesList<ConnectApi.EmailAddress>A list of email addresses to send the message to.29.0–31.0