OfficeDev / office-js

A repo and NPM package for Office.js, corresponding to a copy of what gets published to the official "evergreen" Office.js CDN, at https://appsforoffice.microsoft.com/lib/1/hosted/office.js.
https://learn.microsoft.com/javascript/api/overview
Other
654 stars 93 forks source link

Office.context.mailbox.item.displayReplyAllForm attachments fails in Outlook Web platform #4599

Open ashu66867 opened 1 week ago

ashu66867 commented 1 week ago

Provide required information needed to triage your issue

Our add-in uses "Office.context.mailbox.item.displayReplyAllForm" method which open a new reply all popup. We provide a download url for attachments. But the attachment fails in Outlook on the web & Outlook (new) app on Windows PC.

Linked issue : #4300

Your Environment

Expected behavior

Attachments should be added to the reply all popup.

Current behavior

Popup window loads but the attachment fails. A warning is displayed The following files couldn't be attached: sample_doc.pdf. Please try again later.

This issues is being faced only on Outlook on the web & Outlook (new) app on Windows PC. Classic Outlook on Windows is working as expected.

Steps to reproduce

Please

  1. Add 'DocuSign for Outlook' app to Outlook.
  2. Login.
  3. Click on 'Sign' button and then 'Finish' button.
  4. Click on 'Send by Email' button. ( Temporarily removed from add-in )
  5. A new mail will be drafted but the attachment fails.

Context

This issue has impacted the core functionality of our add-in. Our customers have been impacted for more than 5 months now. I had raised another issue #4300 for the same. But there are no updates.

Useful logs

Thank you for taking the time to report an issue. Our triage team will respond to you in less than 72 hours. Normally, response time is <10 hours Monday through Friday. We do not triage on weekends.

ashu66867 commented 1 week ago

@ElizabethSamuel-MSFT @sumurthy @AlexJerabek @Rick-Kirkham @zhenhuangMSFT Request you all to please fix this issue asap.

ashu66867 commented 1 week ago

Please suggest if there are any workarounds.

mmanjaree-msft commented 6 days ago

Apologies for inconvenience caused. We do not have any timelines to share at this point. Internal tracking id: 265668 Will adding an attachment with onMessageCompose event work for your usecase?

ashu66867 commented 6 days ago

@mmanjaree-msft onMessageCompose event will trigger for every new mail. I need a way to 'Reply All' only for a selected mail item. I am using 'displayReplyAllForm' method for this purpose.

The problem is that 'displayReplyAllForm' method internally calls 'createAttachmentFromUri' which is failing with 500 error. 'createAttachmentFromUri' is also called in 'displayNewMessage' which again fails 500 error.

So, Is there any workaround for this 500 error.

Swathy-Mothilal commented 1 day ago

@ashu66867 Unfortunately there is no work around to handle this 500 error.