OBJECT
EmailEntity
Email message sent or received by users of the space, linked to the contacts, accounts and other records it concerns.
link GraphQL Schema definition
- type EmailEntity {
- # True when the record is protected against deletion because it must always exist
- # in the space. Deleting a record that is not protected can still fail on other
- # checks. Read-only.
- : Boolean!
- # Unique identifier of entity.
- : ID!
- # Specifies if the entity is considered deleted.
- : Boolean
- # Last modification time.
- : DateTime
- # Creation time.
- : DateTime
- # Configured company email used as the From / Reply-To. Empty when sent from the
- # user mailbox.
- : CompanyEmailEntity
- # The original email a draft was started from (reply/forward source), or empty for
- # a standalone draft.
- : EmailEntity
- # Sales user who owns this email. May be empty for unassigned emails.
- : ClientEntity
- # For mass emails: the master email this copy was generated from. Empty for the
- # master and for non-mass emails.
- : EmailEntity
- # Account record matched as the sender, or empty when the sender does not match an
- # existing Account.
- : AccountEntity
- # Internal user matched as the sender, or empty when the sender is external.
- : ClientEntity
- # Contact record matched as the sender, or empty when the sender does not match an
- # existing Contact.
- : ContactEntity
- # Email template used to compose this email, or empty when none was used.
- : EmailTemplateEntity
- # Extra raw email headers preserved from the source message, as a JSON object
- # mapping each header name to a string or a list of strings.
- : JSONString
- # Comma-separated list of blind-carbon-copy recipients.
- : String
- # HTML body of the email, or a localized "Private content" label when the caller
- # cannot read its content.
- #
- # Arguments
- # mailboxId: Mailbox the email is shown in (inbox). Content
- # sharing is not applied there: the content is available when the email is in one
- # of your mailboxes. Without it content sharing applies.
- (: ID): String!
- # Plain-text summary of the body, or a localized "Private content" label when the
- # caller cannot read the email content.
- #
- # Arguments
- # mailboxId: Mailbox the email is shown in (inbox). Content
- # sharing is not applied there: the content is available when the email is in one
- # of your mailboxes. Without it content sharing applies.
- (: ID): String!
- # Comma-separated list of carbon-copy recipients.
- : String
- # Id of the company email used as the From / Reply-To. Empty when sent from the
- # user mailbox.
- : ID
- # How the email body is shared with non-owners (e.g. Private hides the body,
- # Public makes it visible to anyone with read access on the email envelope).
- : ContentShareModeEnum
- # MIME content type of the body (e.g. text/html, text/plain).
- : String
- # Timestamp the email was sent. Empty for drafts and scheduled emails not yet
- # sent.
- : DateTime
- # Direction of the email (Incoming, Outgoing).
- : EmailDirectionEnum!
- # Id of the original email a draft was started from (reply/forward source), or
- # empty for a standalone draft.
- : ID
- # Saved state of an email draft (recipients, subject, body, attachments, template,
- # sharing) used to reopen it for editing. Empty for emails that are not drafts.
- : EmailDraftSettings
- # Numeric error code recorded when the email failed to send. Zero when no error
- # occurred.
- : Int
- # True when this email is an unsent draft. Drafts have no dateSent/sendAt and are
- # excluded from the sent/scheduled streams.
- : Boolean
- # True when delivery tracking is enabled. Tracked emails generate EmailEvent
- # records on open/click.
- : Boolean
- # External identifier of the email on the source mailbox (e.g. IMAP Message-ID).
- # Used to deduplicate when re-syncing.
- : String
- # Id of the email owner.
- : ID
- # Id of the parent (master) email.
- : ID
- # Sending configuration of a scheduled email (sending account, recipients, linked
- # records, follow-up options). Empty when the email is not scheduled.
- : EmailScheduleSettings
- # Timestamp at which a scheduled email is queued to be sent. Empty for
- # immediately-sent emails.
- : DateTime
- # Sender address as it appeared on the email (free-text "From" header).
- : String
- # Id of the matched sender account.
- : ID
- # Id of the matched sender user.
- : ID
- # Id of the matched sender contact.
- : ID
- # Id of the personal email-integration account that sent this email.
- : ID
- # Sentiment of the email. Null without access to the email content.
- #
- # Arguments
- # mailboxId: Mailbox the email is shown in (inbox). Content
- # sharing is not applied there: the content is available when the email is in one
- # of your mailboxes. Without it content sharing applies.
- (: ID): EmailSentimentEnum
- # Sharing model for the email envelope (e.g. shared with selected sales units or
- # selected users). The matching sharingUnits / sharingClients lists control who is
- # granted access.
- : ShareModeEnum
- # Subject line of the email, or a localized "Private content" label when the
- # caller cannot read its content.
- #
- # Arguments
- # mailboxId: Mailbox the email is shown in (inbox). Content
- # sharing is not applied there: the content is available when the email is in one
- # of your mailboxes. Without it content sharing applies.
- (: ID): String!
- # Discriminator identifying the concrete record type — always "email" for Email
- # records. Read-only; useful when consuming polymorphic Message results.
- : String!
- # Id of the email template.
- : ID
- # Identifier grouping emails belonging to the same conversation thread.
- : ID
- # Comma-separated list of primary recipients.
- : String
- # Whether the email is an individual email (Standard) or part of a mass email
- # (Mass).
- : EmailTypeEnum
- # IMAP UID of the email on the source mailbox.
- : String!
- # Revision when entity was lastly changed.
- : Int
- # True when the current authenticated user has marked this email as favorite.
- # Per-user.
- : Boolean!
- # Sales units that have been granted shared access to this email envelope.
- #
- # Arguments
- # filter: Filter SalesUnit relations by target SalesUnit
- # attributes.
- # filterEdge: Filter MessageSharingSalesUnitRelation relations by
- # edge (relation) MessageSharingSalesUnitRelation attributes.
- # orderBy: Order SalesUnit relations by target SalesUnit
- # attributes.
- # includeDeleted: Returns deleted target records as well. Default
- # is true.
- # before: Cursor until which to take entities to result set.
- # after: Cursor after which to start taking entities to result
- # set.
- # first: Number of entities to return from beginning of the
- # result set.
- # last: Return only the "last" number of entities from result
- # set.
- (
- : SalesUnitFilterInput,
- : MessageSharingSalesUnitRelationFilterInput,
- : [SalesUnitOrderByInput!],
- : Boolean,
- : String,
- : String,
- : Int,
- : Int
- ): MessageSharingSalesUnitRelationEntityConnection
- # Users that have been granted shared access to this email envelope.
- #
- # Arguments
- # filter: Filter Client relations by target Client attributes.
- # filterEdge: Filter MessageSharingClientRelation relations by
- # edge (relation) MessageSharingClientRelation attributes.
- # orderBy: Order Client relations by target Client attributes.
- # includeDeleted: Returns deleted target records as well. Default
- # is true.
- # before: Cursor until which to take entities to result set.
- # after: Cursor after which to start taking entities to result
- # set.
- # first: Number of entities to return from beginning of the
- # result set.
- # last: Return only the "last" number of entities from result
- # set.
- (
- : ClientFilterInput,
- : MessageSharingClientRelationFilterInput,
- : [ClientOrderByInput!],
- : Boolean,
- : String,
- : String,
- : Int,
- : Int
- ): MessageSharingClientRelationEntityConnection
- # Sales units that have been granted access to the email body when
- # contentShareMode is restricted.
- #
- # Arguments
- # filter: Filter SalesUnit relations by target SalesUnit
- # attributes.
- # filterEdge: Filter EmailContentSharingSalesUnitRelation
- # relations by edge (relation) EmailContentSharingSalesUnitRelation attributes.
- # orderBy: Order SalesUnit relations by target SalesUnit
- # attributes.
- # includeDeleted: Returns deleted target records as well. Default
- # is true.
- # before: Cursor until which to take entities to result set.
- # after: Cursor after which to start taking entities to result
- # set.
- # first: Number of entities to return from beginning of the
- # result set.
- # last: Return only the "last" number of entities from result
- # set.
- (
- : SalesUnitFilterInput,
- : EmailContentSharingSalesUnitRelationFilterInput,
- : [SalesUnitOrderByInput!],
- : Boolean,
- : String,
- : String,
- : Int,
- : Int
- ): EmailContentSharingSalesUnitRelationEntityConnection
- # Users that have been granted access to the email body when contentShareMode is
- # restricted.
- #
- # Arguments
- # filter: Filter Client relations by target Client attributes.
- # filterEdge: Filter EmailContentSharingClientRelation relations
- # by edge (relation) EmailContentSharingClientRelation attributes.
- # orderBy: Order Client relations by target Client attributes.
- # includeDeleted: Returns deleted target records as well. Default
- # is true.
- # before: Cursor until which to take entities to result set.
- # after: Cursor after which to start taking entities to result
- # set.
- # first: Number of entities to return from beginning of the
- # result set.
- # last: Return only the "last" number of entities from result
- # set.
- (
- : ClientFilterInput,
- : EmailContentSharingClientRelationFilterInput,
- : [ClientOrderByInput!],
- : Boolean,
- : String,
- : String,
- : Int,
- : Int
- ): EmailContentSharingClientRelationEntityConnection
- # Accounts this email is linked to.
- #
- # Arguments
- # filter: Filter Account relations by target Account attributes.
- # filterEdge: Filter MessageRelation relations by edge (relation)
- # MessageRelation attributes.
- # orderBy: Order Account relations by target Account attributes.
- # includeDeleted: Returns deleted target records as well. Default
- # is true.
- # before: Cursor until which to take entities to result set.
- # after: Cursor after which to start taking entities to result
- # set.
- # first: Number of entities to return from beginning of the
- # result set.
- # last: Return only the "last" number of entities from result
- # set.
- (
- : AccountFilterInput,
- : MessageRelationFilterInput,
- : [AccountOrderByInput!],
- : Boolean,
- : String,
- : String,
- : Int,
- : Int
- ): MessageRelationEntityConnection
- # Contacts this email is linked to.
- #
- # Arguments
- # filter: Filter Contact relations by target Contact attributes.
- # filterEdge: Filter MessageRelation relations by edge (relation)
- # MessageRelation attributes.
- # orderBy: Order Contact relations by target Contact attributes.
- # includeDeleted: Returns deleted target records as well. Default
- # is true.
- # before: Cursor until which to take entities to result set.
- # after: Cursor after which to start taking entities to result
- # set.
- # first: Number of entities to return from beginning of the
- # result set.
- # last: Return only the "last" number of entities from result
- # set.
- (
- : ContactFilterInput,
- : MessageRelationFilterInput,
- : [ContactOrderByInput!],
- : Boolean,
- : String,
- : String,
- : Int,
- : Int
- ): MessageRelationEntityConnection
- # Projects this email is linked to.
- #
- # Arguments
- # filter: Filter Project relations by target Project attributes.
- # filterEdge: Filter MessageRelation relations by edge (relation)
- # MessageRelation attributes.
- # orderBy: Order Project relations by target Project attributes.
- # includeDeleted: Returns deleted target records as well. Default
- # is true.
- # before: Cursor until which to take entities to result set.
- # after: Cursor after which to start taking entities to result
- # set.
- # first: Number of entities to return from beginning of the
- # result set.
- # last: Return only the "last" number of entities from result
- # set.
- (
- : ProjectFilterInput,
- : MessageRelationFilterInput,
- : [ProjectOrderByInput!],
- : Boolean,
- : String,
- : String,
- : Int,
- : Int
- ): MessageRelationEntityConnection
- # Custom entity records this email is linked to.
- #
- # Arguments
- # filter: Filter CustomEntity relations by target CustomEntity
- # attributes.
- # filterEdge: Filter MessageRelation relations by edge (relation)
- # MessageRelation attributes.
- # orderBy: Order CustomEntity relations by target CustomEntity
- # attributes.
- # includeDeleted: Returns deleted target records as well. Default
- # is true.
- # before: Cursor until which to take entities to result set.
- # after: Cursor after which to start taking entities to result
- # set.
- # first: Number of entities to return from beginning of the
- # result set.
- # last: Return only the "last" number of entities from result
- # set.
- (
- : CustomEntityFilterInput,
- : MessageRelationFilterInput,
- : [CustomEntityOrderByInput!],
- : Boolean,
- : String,
- : String,
- : Int,
- : Int
- ): MessageRelationEntityConnection
- # Leads this email is linked to.
- #
- # Arguments
- # filter: Filter Lead relations by target Lead attributes.
- # filterEdge: Filter MessageRelation relations by edge (relation)
- # MessageRelation attributes.
- # orderBy: Order Lead relations by target Lead attributes.
- # includeDeleted: Returns deleted target records as well. Default
- # is true.
- # before: Cursor until which to take entities to result set.
- # after: Cursor after which to start taking entities to result
- # set.
- # first: Number of entities to return from beginning of the
- # result set.
- # last: Return only the "last" number of entities from result
- # set.
- (
- : LeadFilterInput,
- : MessageRelationFilterInput,
- : [LeadOrderByInput!],
- : Boolean,
- : String,
- : String,
- : Int,
- : Int
- ): MessageRelationEntityConnection
- # Opportunities this email is linked to.
- #
- # Arguments
- # filter: Filter Opportunity relations by target Opportunity
- # attributes.
- # filterEdge: Filter MessageRelation relations by edge (relation)
- # MessageRelation attributes.
- # orderBy: Order Opportunity relations by target Opportunity
- # attributes.
- # includeDeleted: Returns deleted target records as well. Default
- # is true.
- # before: Cursor until which to take entities to result set.
- # after: Cursor after which to start taking entities to result
- # set.
- # first: Number of entities to return from beginning of the
- # result set.
- # last: Return only the "last" number of entities from result
- # set.
- (
- : OpportunityFilterInput,
- : MessageRelationFilterInput,
- : [OpportunityOrderByInput!],
- : Boolean,
- : String,
- : String,
- : Int,
- : Int
- ): MessageRelationEntityConnection
- # Quotes this email is linked to.
- #
- # Arguments
- # filter: Filter Quote relations by target Quote attributes.
- # filterEdge: Filter MessageRelation relations by edge (relation)
- # MessageRelation attributes.
- # orderBy: Order Quote relations by target Quote attributes.
- # includeDeleted: Returns deleted target records as well. Default
- # is true.
- # before: Cursor until which to take entities to result set.
- # after: Cursor after which to start taking entities to result
- # set.
- # first: Number of entities to return from beginning of the
- # result set.
- # last: Return only the "last" number of entities from result
- # set.
- (
- : QuoteFilterInput,
- : MessageRelationFilterInput,
- : [QuoteOrderByInput!],
- : Boolean,
- : String,
- : String,
- : Int,
- : Int
- ): MessageRelationEntityConnection
- # Tag labels applied to this email. Visible only to users that can read the email
- # body.
- #
- # Arguments
- # filter: Filter Tag relations by target Tag attributes.
- # filterEdge: Filter TagRelation relations by edge (relation)
- # TagRelation attributes.
- # orderBy: Order Tag relations by target Tag attributes.
- # includeDeleted: Returns deleted target records as well. Default
- # is true.
- # before: Cursor until which to take entities to result set.
- # after: Cursor after which to start taking entities to result
- # set.
- # first: Number of entities to return from beginning of the
- # result set.
- # last: Return only the "last" number of entities from result
- # set.
- (
- : TagFilterInput,
- : TagRelationFilterInput,
- : [TagOrderByInput!],
- : Boolean,
- : String,
- : String,
- : Int,
- : Int
- ): TagRelationEntityConnection
- # Attachments and other documents linked to this email.
- #
- # Arguments
- # mailboxId: Mailbox the email is shown in (inbox). Content
- # sharing is not applied there: the content is available when the email is in one
- # of your mailboxes. Without it content sharing applies.
- # filter: Filter CloudObject relations by target CloudObject
- # attributes.
- # filterEdge: Filter CloudObjectRelation relations by edge
- # (relation) CloudObjectRelation attributes.
- # orderBy: Order CloudObject relations by target CloudObject
- # attributes.
- # includeDeleted: Returns deleted target records as well. Default
- # is true.
- # before: Cursor until which to take entities to result set.
- # after: Cursor after which to start taking entities to result
- # set.
- # first: Number of entities to return from beginning of the
- # result set.
- # last: Return only the "last" number of entities from result
- # set.
- (
- : ID,
- : CloudObjectFilterInput,
- : CloudObjectRelationFilterInput,
- : [CloudObjectOrderByInput!],
- : Boolean,
- : String,
- : String,
- : Int,
- : Int
- ): CloudObjectRelationEntityConnection
- # Ids of the mailboxes (company or personal) the email envelope belongs to,
- # aggregated from the active emailMailboxRelation rows.
- : [UUID!]!
- # Permissions the current user has on this record, out of the requested ones.
- #
- # Arguments
- # permissions: Permissions to check; the result lists those the
- # current user has.
- (: [EntityPermsEnum!]!): [EntityPermsEnum!]!
- # Tracking statistics (sent, opened, clicked, replied, bounced, unsubscribed) of
- # the individual emails sent from this mass email.
- : MassEmailTrackingInfo!
- # Tracking events of the email, newest first: up to the 20 latest opens, clicks
- # and unsubscribes, followed by the send event.
- : [EmailTrackingEvent]!
- # Recipients of this mass email in the selected category, with their delivery and
- # engagement state.
- #
- # Arguments
- # category: Recipient group to list, by delivery or engagement
- # outcome.
- # sortBy: Column the recipients are sorted by.
- # sortOrder: Sort direction.
- # before: Cursor until which to take entities to result set.
- # after: Cursor after which to start taking entities to result
- # set.
- # first: Number of entities to return from beginning of the
- # result set.
- # last: Return only the "last" number of entities from result
- # set.
- (
- : MassEmailRelationCategory!,
- : MassEmailDetailGridSortyBy,
- : SortOrder,
- : String,
- : String,
- : Int,
- : Int
- ): MassEmailRelationItemConnection
- # True when a tracking event other than a bounce (such as an open or a click) was
- # recorded for the email.
- : Boolean!
- # True when at least one file is attached to the email.
- : Boolean!
- # True when the email bounced; for a mass email, when any email sent from it
- # bounced. Soft bounces are not counted.
- : Boolean!
- # Subject of the latest sent email in this conversation whose content the caller
- # can read, or a localized "Private content" label when there is none.
- #
- # Arguments
- # mailboxId: Limits the conversation to emails in this mailbox.
- (: ID): String
- # True when the caller can read the content of at least one sent email in this
- # conversation, so `conversationSubject` returns a real subject.
- #
- # Arguments
- # mailboxId: Limits the conversation to emails in this mailbox.
- (: ID): Boolean!
- # True when the caller can read the content of this email; otherwise `subject`,
- # `body` and `bodySummary` return a localized "Private content" label.
- #
- # Arguments
- # mailboxId: Mailbox the email is shown in (inbox). Content
- # sharing is not applied there: the content is available when the email is in one
- # of your mailboxes. Without it content sharing applies.
- (: ID): Boolean!
- # True when the caller can change who can read the content of at least one email
- # in this conversation (see `updateEmailThreadContentShareModeEmail`).
- #
- # Arguments
- # mailboxId: Limits the conversation to emails in this mailbox.
- (
- : ID
- ): Boolean!
- # Paged conversation this email is in, optionally scoped to one mailbox.
- # Deprecated in favour of `conversation`, which returns the whole thread in one
- # payload.
- #
- # Arguments
- # sortOrder: Order of the emails by time; oldest first by
- # default.
- # mailboxId: Limits the conversation to emails in this mailbox
- # and also includes its drafts and scheduled emails.
- # before: Cursor until which to take entities to result set.
- # after: Cursor after which to start taking entities to result
- # set.
- # first: Number of entities to return from beginning of the
- # result set.
- # last: Return only the "last" number of entities from result
- # set.
- (
- : SortOrder,
- : ID,
- : String,
- : String,
- : Int,
- : Int
- ): EmailConversationItemConnection
- # All emails of the conversation this email belongs to in one unpaged list,
- # ordered like `conversationItems`.
- #
- # Arguments
- # mailboxId: Limits the conversation to emails in this mailbox
- # and also includes its drafts and scheduled emails.
- # sortOrder: Order of the emails by time; oldest first by
- # default.
- (: ID, : SortOrder): [EmailConversationItem!]!
- # Earliest sent email of this conversation; empty when this email is the only one
- # in it.
- #
- # Arguments
- # mailboxId: Limits the conversation to emails in this mailbox.
- (: ID): EmailEntity
- # Latest sent email of this conversation whose content the caller can read; empty
- # when this email is the only one in it.
- #
- # Arguments
- # mailboxId: Limits the conversation to emails in this mailbox.
- (: ID): EmailEntity
- # HTML body prefilled for a reply: an "On
wrote:" line followed by - # the quoted original message. Null when the caller cannot read the email content.
- #
- # Arguments
- # mailboxId: Mailbox the email is shown in (inbox). Content
- # sharing is not applied there: the content is available when the email is in one
- # of your mailboxes. Without it content sharing applies.
- (: ID): String
- # HTML body prefilled for forwarding: a forwarded-message header (From, Date,
- # Subject, To, Cc) followed by the quoted original message. Null when the caller
- # cannot read the email content.
- #
- # Arguments
- # mailboxId: Mailbox the email is shown in (inbox). Content
- # sharing is not applied there: the content is available when the email is in one
- # of your mailboxes. Without it content sharing applies.
- (: ID): String
- # True when another user created this email and the given mailbox is not a company
- # mailbox the caller can use.
- #
- # Arguments
- # mailboxId: Mailbox the email is viewed in.
- (: ID!): Boolean!
- # Records the email is linked to in the given mailbox, such as its sender and
- # recipients. An item without `id` is an address not matched to any record, and
- # `isAvailable` is false for a record the caller cannot see.
- #
- # Arguments
- # mailboxId: Mailbox the email is viewed in.
- (: ID!): [EmailEntityLinkedRecord!]!
- # Labels the caller applied to this email's conversation, oldest first. Labels
- # applied by other users and deleted labels are not returned.
- #
- # Arguments
- # mailboxId: Limits the labels to those applied in this mailbox.
- # before: Cursor until which to take entities to result set.
- # after: Cursor after which to start taking entities to result
- # set.
- # first: Number of entities to return from beginning of the
- # result set.
- # last: Return only the "last" number of entities from result
- # set.
- (: ID, : String, : String, : Int, : Int): EmailLabelRelationEntityConnection
- }
link Require by
- ClientFavoriteEntityRecord or screen profile that a user has marked as a favorite.
- ClientStoryReadEntityMark that a user has read an activity, email or memo in their feed, and whether they chose not to follow up on it.
- CloudObjectRelationEntityAttachment of a file to a record, such as an account, contact, opportunity, activity or email template, optionally in a folder of that record.
- CreateEmailPayloadResult of the createEmail mutation.
- DeleteEmailPayloadResult of the deleteEmail mutation.
- EmailContentSharingClientRelationEntitySharing of the body of an email with a user, letting them read its content.
- EmailContentSharingSalesUnitRelationEntitySharing of the body of an email with a sales unit, letting its members read its content.
- EmailConversationItemEdgeA Relay edge containing a `EmailConversationItem` and its cursor.
- EmailEntityEmail message sent or received by users of the space, linked to the contacts, accounts and other records it concerns.
- EmailEntityEdgeA Relay edge containing a `EmailEntity` and its cursor.
- EmailEventEntityTracking event reported for a sent email, such as an open, a link click, a reply or an unsubscribe.
- EmailMailboxRelationEntityLink between an email and a mailbox the email belongs to.
- EmailRepositoryRead operations for Email records.
- LeadOpptyStepCheckListRelationEntityCompletion of a step checklist item on a lead, opportunity or quote, with the activity, email, note or document that fulfils it.
- ManageContentSharingEmailPayloadResult of the manageContentSharingEmail mutation.
- ManageSharingEmailPayloadResult of the manageSharingEmail mutation.
- MessageRelationEntityLink between a message (email or memo) and a record such as an account, contact, lead or opportunity.
- MessageSharingClientRelationEntityShare of a message (email or memo) with an individual user.
- MessageSharingSalesUnitRelationEntityShare of a message (email or memo) with a sales unit.
- OnlineFormEntitySubmission (response) of an online form, with the answers and the records it created or updated.
- OnlineFormTypeEmailRelationEntityEmail that sent an online form link to a recipient, with the record it was sent on.
- TagRelationEntityAssignment of a tag to a record.
- UpdateEmailPayloadResult of the updateEmail mutation.