Office.MessageFormAttachment interface
A file or Outlook item attachment. Used when displaying a new message form.
Properties
| is |
If true, indicates that the attachment will be shown inline in the message body and won't be displayed in the attachment list. Only specify if the |
| item |
The Exchange Web Services (EWS) item ID of the attachment. The item ID is a string of up to 100 characters. Only specify if the |
| name | The name of the attachment. The name can be up to 255 characters in length. |
| type | The type of attachment. Must be |
| url | The URI of the location for the file. Only specify if the |
Property Details
isInline
If true, indicates that the attachment will be shown inline in the message body and won't be displayed in the attachment list. Only specify if the type property is set to Office.MailboxEnums.AttachmentType.File.
isInline?: boolean;
Property Value
boolean
Remarks
Minimum permission level: read item
Applicable Outlook mode: Read
itemId
The Exchange Web Services (EWS) item ID of the attachment. The item ID is a string of up to 100 characters. Only specify if the type property is set to Office.MailboxEnums.AttachmentType.Item.
itemId?: string;
Property Value
string
Remarks
Minimum permission level: read item
Applicable Outlook mode: Read
name
The name of the attachment. The name can be up to 255 characters in length.
name: string;
Property Value
string
Remarks
Minimum permission level: read item
Applicable Outlook mode: Read
type
The type of attachment. Must be Office.MailboxEnums.AttachmentType.File or Office.MailboxEnums.AttachmentType.Item.
type: MailboxEnums.AttachmentType | string;
Property Value
Office.MailboxEnums.AttachmentType | string
Remarks
Minimum permission level: read item
Applicable Outlook mode: Read
Important: The base64 and cloud attachment types aren't supported.
url
The URI of the location for the file. Only specify if the type property is set to Office.MailboxEnums.AttachmentType.File.
url?: string;
Property Value
string
Remarks
Minimum permission level: read item
Applicable Outlook mode: Read
Important: The link must be publicly accessible without need for authentication by Exchange Online servers. However, with on-premises Exchange, the link can be accessible on a private network as long as it doesn't need further authentication.