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
685 stars 95 forks source link

Customizing Outlook Web Addin Message when user's are offline/ Having No Internet connection #4099

Open geetamshukla opened 9 months ago

geetamshukla commented 9 months ago

I am seeing one issue where when user is having no internet, we are getting different error message in Old Outlook Thick Client vs The New Outlook Thick Client .

Now as per the standard design ,Web Addin will work in connected mode only and there is no way we can customize these error message . However, in below error msgs if you see though there is no internet, it explicitly says that “there's a problem with the add-in Outlook Test Addin .” Which is giving wrong impression on Web Addin Tool .

**Is there any way we can customize these messages something like “There is no Internet connectivity. Please try after some time..

how we are getting the message in MAC Thick Client”**

OLD Outlook : On click of Send – User will see an error message. Outlook Test Addin will not prompt, and user remains on the same email. User not able to send email. Error message - Outlook can't send this message because there's a problem with the add-in Outlook Test Addin. image

New Outlook : On click of Send – User will see a message. Outlook Test Addin will not prompt, and user remains on the same email. User not able to send email. Message - We're sorry, we couldn't access Outlook Test Addin. Make sure you have a network connection. If the problem continues, please try again later. image

Mac Outlook : – You’re offline and your organization doesn’t allow messages or invites to be sent now. To send items, please connect to the internet image

We have cached the Add-in for 24 hours so that when the user is offline, we can validate the emails and save them in the user's draft folder. However, we have noticed that when the cache expires and the user is in a flight or no network zone, we receive an error message stating, "Outlook can't send this message because there's a problem with the add-in Outlook Test Addin." Unfortunately, the email does not get saved in the draft folder, which is causing great inconvenience to our users.

We have observed that this behaviour is consistent across all Outlook WEB Add-ins, and there is currently no way to customize the error message or handle the situation so that the mail gets saved in the draft folder when the user sends an email in a flight or no network zone .I am attaching the error screenshots for more reference .

We would appreciate your urgent suggestions on how we can resolve this issue. Is there any way we can save the messages to the user's draft folder when they send an email in a flight or no network zone?

[Uploading EVT-WebAddin-CachingScenarios.pdf…]()

rajjha-msft commented 9 months ago

Hey @geetamshukla

Unfortunately, this is a limitation in the product. Customizing offline messages is not possible right now.

We track Outlook add-in feature requests on our Tech Community Page. Please submit your request there and choose the appropriate label(s). Feature requests on Tech Community are considered, when we go through our planning process.

geetamshukla commented 9 months ago

Hey @geetamshukla

Unfortunately, this is a limitation in the product. Customizing offline messages is not possible right now.

We track Outlook add-in feature requests on our Tech Community Page. Please submit your request there and choose the appropriate label(s). Feature requests on Tech Community are considered, when we go through our planning process.

Added the request on Tech Community Page

https://techcommunity.microsoft.com/t5/microsoft-365-developer-platform/customizing-outlook-web-addin-message-when-user-s-are-offline/idi-p/4054585#M2298