Attachment IDs fetched using Office.context.mailbox.item.getAttachmentsAsync() change after some time for the same attachment #5226
Labels
Area: Outlook
Issue related to Outlook add-ins
Needs: author feedback
Waiting for author (creator) of Issue to provide more info
In Outlook on Mac (Classic UI), it was observed that if an inline attachment is present in the email body, and regular attachments are also present, the attachment ID of both, the regular and inline attachments changes after some time, when fetched using Office.context.mailbox.item.getAttachemntsAsync().
Your Environment
Expected behavior
Ideally, the ID of an attachment should stay consistent when fetched using Office.context.mailbox.item.getAttachmentsAsync().
Current behavior
Currently, when attachment details are fetched using Office.context.mailbox.item.getAttachmentsAsync(), the value of the ID of that attachment changes after some time when fetched again using Office.context.mailbox.item.getAttachmentsAsync().
Steps to reproduce
Context
We have an addin that works around handling attachments, and removing them when necessary.
As the ID of an attachment keeps changing, there is no reliable way to keep track of an attachment, or to remove it (as the remove call requires the ID of that attachment).
The text was updated successfully, but these errors were encountered: