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.EmailMessageCapability

If a feed element has this capability, it has an email message from a case.

Subclass of ConnectApi.FeedElementCapability.

Property Name Type Description Available Version
attachments List<ConnectApi.​EmailAttachment> Attachments in the email message. 36.0
automationType String Automation type of the email message.
  • aiAssisted—The email message was created with the assistance of AI.
  • aiAutomated—The email message was created automatically by AI.
63.0
bccAddresses List<ConnectApi.​EmailAddress> BCC addresses for the email message. 36.0
body String Body of the email message. 36.0
ccAddresses List<ConnectApi.​EmailAddress> CC addresses for the email message. 36.0
direction ConnectApi.​EmailMessageDirection Direction of the email message. Values are:
  • Inbound—An inbound message (sent by a customer).
  • Outbound—An outbound message (sent to a customer by a support agent).
32.0
emailMessageId String ID of the email message. 32.0
emailSize ConnectApi.​EmailMessageSize Size of a case’s email message HTML body.
  • LargeUseLargeHtmlBody permission is set, HTML body exceeds 131K characters, and HTML email display is enabled.
  • Normal—Email message doesn’t meet the Large criteria.
66.0
fromAddress ConnectApi.EmailAddress From address for the email message. 36.0
htmlExpand​EmailThread Integer Start location of previous email thread. 47.0
isRichText Boolean Indicates whether the body of the email message is in rich text format. 36.0
status ConnectApi.​EmailMessageStatus Status of an email message on a case. Values are:
  • DraftStatus
  • ForwardedStatus
  • NewStatus
  • ReadStatus
  • RepliedStatus
  • SentStatus
47.0
subject String Subject of the email message. 32.0
textBody String Body of the email message. Important: In version 36.0 and later, use the body property. 32.0–35.0
toAddresses List<ConnectApi.​EmailAddress> To addresses of the email message. 32.0
totalAttachments Integer Total number of attachments in the email message. 38.0