OBJECT
EmailEntity
link GraphQL Schema definition
- type EmailEntity {
- # Tells if the entity instance is protected against delete (Entities that need to
- # be present in the system at any time). Delete action still may fail if entity is
- # deletable, due some other additional validations.
- : 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
- # 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.
- : JSONString
- : String!
- : String!
- # Comma-separated list of carbon-copy recipients.
- : String
- # Id of the company email.
- : 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!
- # Numeric error code recorded when the email failed to send. Zero when no error
- # occurred.
- : Int
- # 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
- : 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
- # Field whose values are strictly defined with an enumeration of values.
- : EmailSentimentEnum
- # Sharing model for the email envelope (e.g. shared with selected sales units or
- # selected users). The matching sharing_units / sharing_clients lists control who
- # is granted access.
- : ShareModeEnum
- : 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
- # Email category (e.g. regular email, mass email, calendar invitation).
- : EmailTypeEnum
- # IMAP UID of the email on the source mailbox.
- : String!
- # Revision when entity was lastly changed.
- : Int
- # 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
- # content_share_mode 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 content_share_mode 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
- # 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.
- (
- : CloudObjectFilterInput,
- : CloudObjectRelationFilterInput,
- : [CloudObjectOrderByInput!],
- : Boolean,
- : String,
- : String,
- : Int,
- : Int
- ): CloudObjectRelationEntityConnection
- # Checks which permissions current user has on concrete entity instance.
- #
- # Arguments
- # permissions: [Not documented]
- (: [EntityPermsEnum!]!): [EntityPermsEnum!]!
- : MassEmailTrackingInfo!
- : [EmailTrackingEvent]!
- # Arguments
- # category: [Not documented]
- # sortBy: [Not documented]
- # sortOrder: [Not documented]
- # before: [Not documented]
- # after: [Not documented]
- # first: [Not documented]
- # last: [Not documented]
- (
- : MassEmailRelationCategory!,
- : MassEmailDetailGridSortyBy,
- : SortOrder,
- : String,
- : String,
- : Int,
- : Int
- ): MassEmailRelationItemConnection
- : Boolean!
- : Boolean!
- : Boolean!
- # Returns subject for conversation this email is in. Returns null if thread_id =
- # null
- : String
- : Boolean!
- : Boolean!
- : Boolean!
- # Arguments
- # sortOrder: [Not documented]
- # before: [Not documented]
- # after: [Not documented]
- # first: [Not documented]
- # last: [Not documented]
- (
- : SortOrder,
- : String,
- : String,
- : Int,
- : Int
- ): EmailConversationItemConnection
- : EmailEntity
- : EmailEntity
- # Used for reply.
- : String!
- # Used for forward.
- : String!
- }
link Require by
- ClientStoryReadEntitynull
- CloudObjectRelationEntitynull
- CreateEmailPayloadnull
- DeleteEmailPayloadnull
- EmailContentSharingClientRelationEntitynull
- EmailContentSharingSalesUnitRelationEntitynull
- EmailConversationItemEdgeA Relay edge containing a `EmailConversationItem` and its cursor.
- EmailEntitynull
- EmailEntityEdgeA Relay edge containing a `EmailEntity` and its cursor.
- EmailEventEntitynull
- EmailRepositorynull
- LeadOpptyStepCheckListRelationEntitynull
- ManageContentSharingEmailPayloadnull
- ManageSharingEmailPayloadnull
- MessageRelationEntitynull
- MessageSharingClientRelationEntitynull
- MessageSharingSalesUnitRelationEntitynull
- OnlineFormEntitynull
- OnlineFormTypeEmailRelationEntitynull
- TagRelationEntitynull
- UpdateEmailPayloadnull