Skip to main content

SalesOrderEmailActivity

One email sent or received about a sales order, with its delivery and engagement tracking.

type SalesOrderEmailActivity {
attachmentCount: Int!
bodyHtml: String
bodyPreview: String
bounceReason: String
bounceType: String
bouncedAt: DateTime
ccEmails: [String!]!
clickCount: Int!
createdAt: DateTime!
deliveredAt: DateTime
direction: String!
firstOpenAt: DateTime
fromEmail: String!
fromName: String
hasAttachment: Boolean!
id: ID!
inReplyToId: String
isReply: Boolean!
lastOpenAt: DateTime
openCount: Int!
organizationId: String!
processedAt: DateTime
processedBy: String
provider: String!
providerMessageId: String
salesOrderId: String!
sentAt: DateTime!
status: String!
strippedTextReply: String
subject: String!
textBody: String
toEmail: String!
toName: String
uniqueOpens: Int!
updatedAt: DateTime!
}

Fields​

SalesOrderEmailActivity.attachmentCount ● Int! non-null scalar​

Number of attachments on the email.

SalesOrderEmailActivity.bodyHtml ● String scalar​

The email body as HTML.

SalesOrderEmailActivity.bodyPreview ● String scalar​

A short plain-text preview of the body.

SalesOrderEmailActivity.bounceReason ● String scalar​

The provider's reason for the bounce. Null when the email did not bounce.

SalesOrderEmailActivity.bounceType ● String scalar​

Kind of bounce reported by the provider (for example hard or soft). Null when the email did not bounce.

SalesOrderEmailActivity.bouncedAt ● DateTime scalar​

When the email bounced. Null when it did not.

SalesOrderEmailActivity.ccEmails ● [String!]! non-null scalar​

Addresses copied on the email.

SalesOrderEmailActivity.clickCount ● Int! non-null scalar​

Total link clicks recorded across all recipients.

SalesOrderEmailActivity.createdAt ● DateTime! non-null scalar​

When the record was created.

SalesOrderEmailActivity.deliveredAt ● DateTime scalar​

When the provider confirmed delivery. Null until delivered.

SalesOrderEmailActivity.direction ● String! non-null scalar​

Whether the email was sent by you (OUTBOUND) or received from the customer (INBOUND).

SalesOrderEmailActivity.firstOpenAt ● DateTime scalar​

When the email was first opened. Null if never opened.

SalesOrderEmailActivity.fromEmail ● String! non-null scalar​

Sender address.

SalesOrderEmailActivity.fromName ● String scalar​

Sender display name.

SalesOrderEmailActivity.hasAttachment ● Boolean! non-null scalar​

Whether the email carries at least one attachment.

SalesOrderEmailActivity.id ● ID! non-null scalar​

The unique ID of this record.

SalesOrderEmailActivity.inReplyToId ● String scalar​

The ID of the email this one replies to, used to thread the conversation.

SalesOrderEmailActivity.isReply ● Boolean! non-null scalar​

Whether this email is a reply to an earlier one.

SalesOrderEmailActivity.lastOpenAt ● DateTime scalar​

When the email was last opened. Null if never opened.

SalesOrderEmailActivity.openCount ● Int! non-null scalar​

Total opens recorded.

SalesOrderEmailActivity.organizationId ● String! non-null scalar​

The ID of the organization the record belongs to.

SalesOrderEmailActivity.processedAt ● DateTime scalar​

When the reply was processed into the document's activity. Null until processed.

SalesOrderEmailActivity.processedBy ● String scalar​

The ID of the user who processed the reply. Null when unprocessed.

SalesOrderEmailActivity.provider ● String! non-null scalar​

The email provider that sent or received the message.

SalesOrderEmailActivity.providerMessageId ● String scalar​

The provider's own ID for the message.

SalesOrderEmailActivity.salesOrderId ● String! non-null scalar​

The ID of the sales order.

SalesOrderEmailActivity.sentAt ● DateTime! non-null scalar​

When the email was sent or received.

SalesOrderEmailActivity.status ● String! non-null scalar​

Delivery status of the email (for example SENT, DELIVERED, OPENED, BOUNCED).

SalesOrderEmailActivity.strippedTextReply ● String scalar​

For a reply, the new text only, with the quoted earlier thread removed.

SalesOrderEmailActivity.subject ● String! non-null scalar​

Subject line.

SalesOrderEmailActivity.textBody ● String scalar​

The email body as plain text.

SalesOrderEmailActivity.toEmail ● String! non-null scalar​

Recipient address.

SalesOrderEmailActivity.toName ● String scalar​

Recipient display name.

SalesOrderEmailActivity.uniqueOpens ● Int! non-null scalar​

Number of distinct recipients who opened the email.

SalesOrderEmailActivity.updatedAt ● DateTime! non-null scalar​

When the record was last changed.

Returned By​

salesOrderEmailThread query