Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
AttachmentDetails object

AttachmentDetails object (JavaScript API for Office)

Office Add-ins

Represents an attachment on an item from the server.

Last modified: August 07, 2015

Note Note

The name "apps for Office" is changing to "Office Add-ins". During the transition, the documentation and the UI of some Office host applications and Visual Studio tools might still use the term "apps for Office". For details, see New name for apps for Office and SharePoint.

Hosts:Outlook

Add-in type: Mail

Available in requirement sets

Mailbox

Last changed in Mailbox

1.0

Applicable Outlook modes

Read

See all support details

Office.context.mailbox.item.attachments

Property name

Outlook mode

Description

Introduced in

attachmentType

Read

Gets one of the AttachmentType enumeration values that indicates whether the attachment is an Exchange item or a file.

Version 1.0

contentType

Read

Gets the MIME content type of the attachment.

Version 1.0

id

Read

Gets the Exchange Web Services (EWS) attachment identifier for the attachment.

Version 1.0

isInline

Read

Gets a value that indicates whether the attachment is an inline attachment.

Version 1.0

name

Read

Gets the name of the attachment.

Version 1.0

size

Read

Gets the size of the attachment in bytes.

Version 1.0

An array of AttachmentDetail objects is returned as the attachments property of an Item, Appointment, or Message objects.

A checkmark (√) in the following table indicates that this property is supported in the corresponding Outlook host application. An empty cell indicates that the Outlook host application doesn't support this property.

For more information about Office host application and server requirements, see Requirements for running Office Add-ins.

Supported hosts, by platform

Office for Windows desktop

Office Online
(in browser)

OWA for Devices

Office for Mac

Outlook

√ (Read mode only)

Available in requirement sets

Mailbox

Minimum permission level

ReadItem

Add-in types

Mail

Library

Office.js

Namespace

Office

Version

Changes

1.0

Introduced

Show:
© 2015 Microsoft