Office.AttachmentDetailsCompose interface

Represents an attachment on an item. Compose mode only.

An array of AttachmentDetailsCompose objects is returned as the attachments property of an appointment or message item.

Remarks

[ API set: Mailbox 1.8 ]

Minimum permission level: read item

Applicable Outlook mode: Compose

Properties

attachmentType

Gets a value that indicates the type of an attachment.

id

Gets the index of the attachment.

isInline

Gets a value that indicates whether the attachment should be displayed in the body of the item.

name

Gets the name of the attachment.

Important: For message or appointment items that were attached by drag-and-drop or "Attach Item", name includes a file extension in Outlook on Mac, but excludes the extension on the web or Windows.

size

Gets the size of the attachment in bytes.

url

Gets the url of the attachment if its type is MailboxEnums.AttachmentType.Cloud.

Property Details

attachmentType

Gets a value that indicates the type of an attachment.

attachmentType: MailboxEnums.AttachmentType | string;

Property Value

id

Gets the index of the attachment.

id: string;

Property Value

string

isInline

Gets a value that indicates whether the attachment should be displayed in the body of the item.

isInline: boolean;

Property Value

boolean

name

Gets the name of the attachment.

Important: For message or appointment items that were attached by drag-and-drop or "Attach Item", name includes a file extension in Outlook on Mac, but excludes the extension on the web or Windows.

name: string;

Property Value

string

size

Gets the size of the attachment in bytes.

size: number;

Property Value

number

url

Gets the url of the attachment if its type is MailboxEnums.AttachmentType.Cloud.

url?: string;

Property Value

string