Skip to main content

EmailMessage

A message created in Groove as a result of an incoming email.

Both contacts and agents can author these type of messages. For example, if an agent replies directly to a contact (possibly using a Groove notification email), then Groove will register the agent's email response as a MessageFromEmailChange.

type EmailMessage implements Emailable, Message, Node {
attachments(
after: String
before: String
first: Int
last: Int
): AttachmentConnection
author: Author
bcc(
after: String
before: String
first: Int
last: Int
): RecipientConnection
body: String
bodyPlainText: String
cannedReply: CannedReply
cc(
after: String
before: String
first: Int
last: Int
): RecipientConnection
channel: Channel!
createdAt: DateTime!
editedAt: DateTime
fromMerge: Boolean
fromMove: Boolean
id: ID!
isNote: Boolean!
parts(
after: String
before: String
first: Int
last: Int
): EmailPartConnection!
rule: Rule
sourceConversation: Conversation
summary: SummaryMessage!
to(
after: String
before: String
first: Int
last: Int
): RecipientConnection!
updatedAt: DateTime!
}

Fields

EmailMessage.attachments ● AttachmentConnection object common

The files attached to the message, if any.

EmailMessage.attachments.after ● String scalar common

Returns the elements in the list that come after the specified cursor.

EmailMessage.attachments.before ● String scalar common

Returns the elements in the list that come before the specified cursor.

EmailMessage.attachments.first ● Int scalar common

Returns the first n elements from the list.

EmailMessage.attachments.last ● Int scalar common

Returns the last n elements from the list.

EmailMessage.author ● Author union common

The actor that authored the body.

EmailMessage.bcc ● RecipientConnection object common

The "Bcc" recipients of the email.

EmailMessage.bcc.after ● String scalar common

Returns the elements in the list that come after the specified cursor.

EmailMessage.bcc.before ● String scalar common

Returns the elements in the list that come before the specified cursor.

EmailMessage.bcc.first ● Int scalar common

Returns the first n elements from the list.

EmailMessage.bcc.last ● Int scalar common

Returns the last n elements from the list.

EmailMessage.body ● String scalar common

The body of the message in HTML.

EmailMessage.bodyPlainText ● String scalar common

The body of the message in plain text.

EmailMessage.cannedReply ● CannedReply object common

The canned reply used for this message.

EmailMessage.cc ● RecipientConnection object common

The "Cc" recipients of the email.

EmailMessage.cc.after ● String scalar common

Returns the elements in the list that come after the specified cursor.

EmailMessage.cc.before ● String scalar common

Returns the elements in the list that come before the specified cursor.

EmailMessage.cc.first ● Int scalar common

Returns the first n elements from the list.

EmailMessage.cc.last ● Int scalar common

Returns the last n elements from the list.

EmailMessage.channel ● Channel! non-null interface common

The channel this message belongs to

EmailMessage.createdAt ● DateTime! non-null scalar common

The date and time that the object was created.

EmailMessage.editedAt ● DateTime scalar common

The date and time that the object was last updated.

EmailMessage.fromMerge ● Boolean scalar common

True if the message comes from a merged conversation; false otherwise.

EmailMessage.fromMove ● Boolean scalar common

True if the message was moved from another conversation; false otherwise.

EmailMessage.id ● ID! non-null scalar common

EmailMessage.isNote ● Boolean! non-null scalar common

True if the message is a note; false otherwise.

EmailMessage.parts ● EmailPartConnection! non-null object common

The email parts associated with this email.

EmailMessage.parts.after ● String scalar common

Returns the elements in the list that come after the specified cursor.

EmailMessage.parts.before ● String scalar common

Returns the elements in the list that come before the specified cursor.

EmailMessage.parts.first ● Int scalar common

Returns the first n elements from the list.

EmailMessage.parts.last ● Int scalar common

Returns the last n elements from the list.

EmailMessage.rule ● Rule object common

The rule that caused this message to be created.

EmailMessage.sourceConversation ● Conversation interface common

The conversation the message was moved from.

EmailMessage.summary ● SummaryMessage! non-null object common

The summary of the message.

EmailMessage.to ● RecipientConnection! non-null object common

The "To" recipients of the email.

EmailMessage.to.after ● String scalar common

Returns the elements in the list that come after the specified cursor.

EmailMessage.to.before ● String scalar common

Returns the elements in the list that come before the specified cursor.

EmailMessage.to.first ● Int scalar common

Returns the first n elements from the list.

EmailMessage.to.last ● Int scalar common

Returns the last n elements from the list.

EmailMessage.updatedAt ● DateTime! non-null scalar common

The date and time that the object was last updated.

Interfaces

Emailable interface common

A message that is sent via email.

Message interface common

An individual message, for example an incoming email, an email reply, or a note.

Node interface common

An object with an ID.

Implemented by

ChangeTypeUnion union