OBJECT

EmailDraftSettings

Saved state of an email draft: recipients, subject, body, attachments, template and sharing, so the draft can be reopened for editing.

link GraphQL Schema definition

  • type EmailDraftSettings {
  • # Email account the email is sent from (`SendEmailService`).
  • service: SendEmailService!
  • # Primary (To) recipients of the email.
  • recipients: [SendEmailRecipient]!
  • # Blind-carbon-copy recipients of the email.
  • bcc: [SendEmailRecipient]!
  • # Carbon-copy recipients of the email.
  • cc: [SendEmailRecipient]!
  • # Id of the email this one replies to, which puts it in that conversation.
  • replyTo: String
  • # Records chosen to be linked to the email.
  • linkedItems: [SendEmailLinkedEntity]!
  • # True when records could be chosen to be linked to the email while composing it;
  • # false, for example, for a mass email sent from the account or contact list.
  • isLinkEntitiesEnabled: Boolean!
  • # True when the email is composed from an HTML email template.
  • isHtmlTemplate: Boolean!
  • # True to also send the email to recipients who have unsubscribed.
  • sendToUnsubscribed: Boolean!
  • # For a mass email: true to also link each individual email to the lead or
  • # opportunity given for its recipient.
  • massMailWithLinkedRecords: Boolean!
  • # Email sequence the recipients are enrolled in once it is sent.
  • enrollEmailSequenceId: UUID
  • # Records whose data fill the placeholders of the email.
  • personifyBy: PersonificationEntityData
  • # Task created to log the email once it has been sent.
  • logEmailAsTask: SendEmailFollowupTaskSettings
  • # Follow-up task created once the email has been sent.
  • logFollowUpTask: SendEmailFollowupTaskSettings
  • # Type of the records the recipients were picked from, such as Contact or Account,
  • # which the email is primarily addressed to; empty when not known.
  • primaryEntity: EntityNameEnum
  • # Records a standard (not mass) email is linked to in addition to its recipients.
  • standardMailAdditionalLinkedItems: [SendEmailLinkedEntity]!
  • # True when the draft is a mass email.
  • massMail: Boolean!
  • # Subject of the draft.
  • subject: String!
  • # HTML body of the draft.
  • html: String!
  • # Ids of the files attached to the draft.
  • attachments: [UUID]!
  • # Email template the draft was composed from.
  • emailTemplateId: UUID
  • # Who can read the content of the email once it is sent.
  • contentShareMode: ContentShareModeEnum
  • # Users who can read the content when `contentShareMode` is Custom.
  • contentSharingClients: [UUID]!
  • # Sales units whose members can read the content when `contentShareMode` is
  • # Custom.
  • contentSharingUnits: [UUID]!
  • }