Office.AttachmentDetailsCompose interface
Represents an attachment on an item. Compose mode only.
An array of AttachmentDetailsCompose
objects is returned by the getAttachmentsAsync
method.
Remarks
Minimum permission level: read item
Applicable Outlook mode: Compose
Properties
attachment |
Gets a value that indicates the attachment's type. |
id | Gets the index of the attachment. |
is |
Gets a value that indicates whether the attachment appears as an image in the body of the item instead of in the attachment list. |
name | Gets the name of the attachment. Important: For message or appointment items that were attached by drag-and-drop or "Attach Item", |
size | Gets the size of the attachment in bytes. |
url | Gets the url of the attachment if its type is |
Property Details
attachmentType
Gets a value that indicates the attachment's type.
attachmentType: MailboxEnums.AttachmentType | string;
Property Value
Office.MailboxEnums.AttachmentType | string
id
Gets the index of the attachment.
id: string;
Property Value
string
isInline
Gets a value that indicates whether the attachment appears as an image in the body of the item instead of in the attachment list.
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 on 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
Office Add-ins