Outlook OfficeJS attachment calls support for cloud attachment links

Outlook OfficeJS attachment calls support for cloud attachment links
1

Upvotes

Upvote

 Dec 05 2022
0 Comments 
New

On a Windows environment utilizing OWA, when attempting to attach a cloud based attachment, the cloud attachment is not added to the "attachment bar". Instead, it is added as a hyperlink within the email body.

 

Further, when making a call to "Office.context.mailbox.item.getAttachmentsAsync", cloud attachments are not populated in the array returned, only attachments by copy; this also occurs when trying to listen to the attachmentChanged event. If the user adds a cloud attachment while our add-in is open, the event will not fire if the attachment is cloud based.

 

This worked prior to the change to use links for cloud attachments (so I really think this should be considered a bug...).

 

Feature request:

  • Cloud attachments that are added to an email are returned when "Office.context.mailbox.item.getAttachmentsAsync" is called.
  • Cloud attachments should trigger an "AttachmentChanged" event when they are added or removed.