ConnectApi.EmailMessageCapability

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

Subclass of ConnectApi.FeedElementCapability.

Property NameTypeDescriptionAvailable Version
attachmentsList<ConnectApi.​EmailAttachment>Attachments in the email message.36.0
automationTypeStringAutomation 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
bccAddressesList<ConnectApi.​EmailAddress>BCC addresses for the email message.36.0
bodyStringBody of the email message.36.0
ccAddressesList<ConnectApi.​EmailAddress>CC addresses for the email message.36.0
directionConnectApi.​EmailMessageDirectionDirection 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
emailMessageIdStringID of the email message.32.0
emailSizeConnectApi.​EmailMessageSizeSize of a case’s email message HTML body.
  • Large—UseLargeHtmlBody 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
fromAddressConnectApi.EmailAddressFrom address for the email message.36.0
htmlExpand​EmailThreadIntegerStart location of previous email thread.47.0
isRichTextBooleanIndicates whether the body of the email message is in rich text format.36.0
statusConnectApi.​EmailMessageStatusStatus of an email message on a case. Values are:
  • DraftStatus
  • ForwardedStatus
  • NewStatus
  • ReadStatus
  • RepliedStatus
  • SentStatus
47.0
subjectStringSubject of the email message.32.0
textBodyStringBody of the email message. Important: In version 36.0 and later, use the body property.32.0–35.0
toAddressesList<ConnectApi.​EmailAddress>To addresses of the email message.32.0
totalAttachmentsIntegerTotal number of attachments in the email message.38.0

See Also