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

In version 36.0 and later, use the body property.

Important

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