OfficeDev / office-js-docs-reference

Microsoft Office JavaScript API Reference
https://learn.microsoft.com/javascript/api/overview
MIT License
103 stars 63 forks source link

Example not relevant anymore #1976

Open nicolenco-eugeniu-eukles opened 6 days ago

nicolenco-eugeniu-eukles commented 6 days ago

In this section https://learn.microsoft.com/en-us/javascript/api/outlook/office.attachmentcontent?view=outlook-js-preview#outlook-office-attachmentcontent-format-member

There is an example which does not work anymore the item.getAttachmentsAsync(options, callback); method does not exist on mail item

AlexJerabek commented 6 days ago

Hi @nicolenco-eugeniu-eukles,

Thank you for reporting this. @samantharamon, could you please investigate?

samantharamon commented 5 days ago

Hi @nicolenco-eugeniu-eukles,

Are you calling item.getAttachmentsAsync from the compose or read surface? Please note that it's only supported on the compose surface. I tested this in a new message and was able to call the method.

microsoft-github-policy-service[bot] commented 21 hours ago

This issue has been automatically marked as stale because it is marked as needing author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment. Thank you for your interest in Office Add-ins!