Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unpredictable behavior of Office.context.mailbox.item.getAttachmentsAsync #5114

Open
hmuris opened this issue Nov 19, 2024 · 3 comments
Open
Labels
Area: Outlook Issue related to Outlook add-ins Needs: triage 🔍 New issue, needs PM on rotation to triage ASAP

Comments

@hmuris
Copy link

hmuris commented Nov 19, 2024

When the method Office.context.mailbox.item.getAttachmentsAsync is executed, attachments are sometimes returned sometimes not.
It differs for inline attachments.

Expected behavior

Always return attachments correctly.

Current behavior

If the new email is written, and inline attachments are added, mentioned method is not returning attachments. When normal attachments are added and removed, then it does.

Steps to reproduce

  1. Compose new email
  2. Turn on taskpane addin
  3. Add inline attachment (WinKey + S, part of the screen and paste it in the email)
  4. Click the Run in tha addin
  5. Error: no attahments are returned.

If a normal attachment (not inline) is added (sometimes and removed, and sometimes another added again), the method returns all attachments inline and regular ones.

Here is the demo project, just npm install and then npm start to run the project.
TaskpaneDemo.zip

Demo project is generated with Yeoman generator for Office Add-ins and then slightly modified. Modified are manifest.xml and taskpane.js.

@microsoft-github-policy-service microsoft-github-policy-service bot added the Needs: triage 🔍 New issue, needs PM on rotation to triage ASAP label Nov 19, 2024
@RuizhiSunMS RuizhiSunMS added the Area: Outlook Issue related to Outlook add-ins label Nov 19, 2024
@hmuris
Copy link
Author

hmuris commented Nov 21, 2024

Any news here? We need this to work asap as there are many customers using our Add-in.

@MarcMei80
Copy link

@hmuris There is already an issue classified as a product bug. #5068 Feel free to add comments there to hopefully get a higher priority. Unfortunately, many of our customers have been affected.

@sirrganggi
Copy link

There are multiple reports like this one (e.g. #5068, #5031), so any news or feedback regarding a prompt solution would be important and helpful. Many people are affected of this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: Outlook Issue related to Outlook add-ins Needs: triage 🔍 New issue, needs PM on rotation to triage ASAP
Projects
None yet
Development

No branches or pull requests

4 participants