Skip to main content
Version: Current

Mail Models

Overview

This page describes the mail models returned by workflow email activities such as Read IMAP Email and Read Outlook Email.

These models can be bound through the Process Data drawer and used by downstream workflow activities.


Email

Represents a single email message returned by email read activities.

Returned by:

  • Read IMAP Email
  • Read Outlook Email

Properties

PropertyTypeDescription
FromStringSender email address.
SenderStringSender display name or sender header value.
ToStringRecipient email addresses.
CcStringCC recipient email addresses.
BccStringBCC recipient email addresses.
ReplyToStringReply-To email addresses.
SubjectStringEmail subject.
TextBodyStringPlain-text content of the email.
HtmlBodyStringHTML content of the email.
SentAtDateTimeDate and time the email was sent.
ReceivedAtDateTimeDate and time the email was received.
PriorityStringEmail priority.
InReplyToStringIn-Reply-To header value.
ReferencesStringReferences header value.
MessageIdStringProvider message identifier.
InternalIdStringProvider-specific internal identifier (for example, IMAP UID or Outlook Graph message ID).
AttachmentsList<EmailAttachment>Attachments associated with the email.

EmailAttachment

Represents a single attachment within an email.

Returned through:

  • Email.Attachments

Properties

PropertyTypeDescription
FileNameStringAttachment file name.
ContentTypeStringAttachment MIME type (for example, application/pdf or image/png).
SizeInt64Attachment size in bytes.
AttachmentReferenceStringSerialized AttachmentReference used by attachment retrieval activities.
FileFileReferenceFile handle that can be passed directly to file-consuming activities. See File Reference.

Usage Notes

  • Use AttachmentReference with attachment retrieval activities such as Get IMAP Email Attachment and Get Outlook Email Attachment.
  • Use File when passing attachments directly to activities that accept a File Reference.
  • Use Add To Collection to build a FileReference[] for activities that accept multiple files.

AttachmentReference

Identifies a specific attachment within a mailbox message.

This object is serialized into EmailAttachment.AttachmentReference as a JSON string.

Properties

PropertyTypeDescription
ConnectionNameStringEmail connection used to read the message.
ServerTypeStringEmail server type (IMAP or Outlook).
MessageIdentifierStringIMAP UID or Outlook Graph message ID.
AttachmentIndexInt32?Attachment index for IMAP messages.
AttachmentIdStringAttachment identifier for Outlook messages.

Usage Notes

Pass the AttachmentReference value to: