Skip to content

Commit 90f384d

Browse files
[Outlook] (attachments) Document attachment limitation for Outlook on the web and the new Outlook on Windows (#5003)
* Add note about getAttachmentsAsync limitation * Update ms.date * Apply suggestion from review Co-authored-by: Elizabeth Samuel <[email protected]> --------- Co-authored-by: Elizabeth Samuel <[email protected]>
1 parent 79bd272 commit 90f384d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

docs/outlook/add-and-remove-attachments-to-an-item-in-a-compose-form.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Add and remove attachments in an Outlook add-in
33
description: Use various attachment APIs to manage the files or Outlook items attached to the item the user is composing.
4-
ms.date: 11/19/2024
4+
ms.date: 02/13/2025
55
ms.topic: how-to
66
ms.localizationpriority: medium
77
---
@@ -158,6 +158,9 @@ The following APIs to get attachments in compose mode are available from [requir
158158

159159
Use the [getAttachmentsAsync](/javascript/api/requirement-sets/outlook/preview-requirement-set/office.context.mailbox.item#methods) method to get the attachments of the message or appointment being composed.
160160

161+
> [!NOTE]
162+
> In Outlook on the web and the new Outlook on Windows, users can select the **Upload and share** option to upload an attachment to OneDrive and include a link to the file in the mail item. However, since only a link is included, `getAttachmentsAsync` doesn't return this type of attachment.
163+
161164
To get an attachment's content, use the [getAttachmentContentAsync](/javascript/api/requirement-sets/outlook/preview-requirement-set/office.context.mailbox.item#methods) method. The supported formats are listed in the [AttachmentContentFormat](/javascript/api/outlook/office.mailboxenums.attachmentcontentformat) enum.
162165

163166
You should provide a callback function to check for the status and any error by using the `AsyncResult` output parameter object. You can also pass any additional parameters to the callback function by using the optional `asyncContext` parameter.

0 commit comments

Comments
 (0)