Open Shintaro-My opened 2 months ago
Hi @Shintaro-My, can you please confirm if the issue you are facing is same as #4677? If yes, then this is by design and is the expected behavior as mentioned here.
Hi @kumarshrey-msft !
Yes, it seems that is the case, so I will retract the issue of "cloud-based attachments".
However, there is still the issue of "inline images".
@Shintaro-My Since you are trying it in Outlook new, could you please confirm the behavior on other platforms?
Hi @Swathy-Mothilal !
I have tried this on other platforms:
Office on the web (Chrome): The same situation occurred.
Classic Outlook:
(Microsoft® Outlook® for Microsoft 365 MSO (version: 2408, build: 16.0.17928.20114) 64-bit)
- When selecting an image via
Insert > Picture
, it does not seem to be recognized as an attachment.- When copying and pasting an image into the body, the image is handled as "attachments by copy" rather than "inline images". Threfore, the issue does not occur.
[ { "id": "4", "name": "スクリーンショット 2024-06-17 155724.png", "size": 81652, "attachmentType": "file", "isInline": false // <- ! } ]
Provide required information needed to triage your issue
I am currently developing an Outlook add-in that combines launchevent and taskpane to check the status of email attachments before sending an email. Specifically, we have prepared a handler for the
AttachmentChanged
event and callOffice.context.mailbox.item.getAttachmentsAsync
when the event is triggered.At this time, we have confirmed cases where the event is not triggered despite attaching or deleting an attachment under certain conditions, and cases where the information of the attached file cannot be obtained.
Here are the conditions and corresponding cases:
AttachmentChanged
event is not triggeredgetAttachmentsAsync
AttachmentChanged
event is not triggeredYour Environment
Expected behavior
AttachmentChanged
event should be triggered when cloud-based attachments are attached and/or removed.AttachmentChanged
event should be triggered when inline images are added (pasted) and/or removed.Office.context.mailbox.item.getAttachmentsAsync
should be able to obtain cloud-based attachments information.Current behavior
Office.context.mailbox.item.getAttachmentsAsync
cannot obtain cloud-based attachments information.Steps to reproduce
Prepare the code like the following in your Add-In.
cloud-based attachments (-A)
.attachments by copy (-B)
.attachments by copy (-B)
will be populated in the array returnedinline images (-C)
).inline images (-C)
will be newly added in the array returnedattachments by copy (-B)
.Provide additional details
This is a similar issue: #2888