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

Outlook on the web randomly stopped loading custom add-ins #3749

Closed SimonDania closed 1 year ago

SimonDania commented 1 year ago

Environment

Expected behavior

The add-in gets loaded in and is visible when composing mails.

Current behavior

I have been using some custom add-ins that I have sideloaded in Outlook on the web using https://outlook.office.com/mail/inclientstore.

They were working just fine without any issues, but for the past week or so they suddenly stopped loading for no apparent reason. There are no errors to be seen in the log either regarding add-ins.

The add-ins still load as expected in Outlook 365 without any problems.

What can I look for? Is anyone else experiencing the same issues?

Provide additional details

I tried following the guide for setting up a new custom add-in with the yeoman generator, and even that add-in does not appear when I sideload it in Outlook. It works just fine in the client.

Context

We have some customers that are not able to use our product anymore because of this issue.

exextoc commented 1 year ago

Can you please confirm if you have this apps image button or not when you open any mail.

SimonDania commented 1 year ago

I do have it:

image

Add-ins I install from AppSource work just fine. It's only apps that I sideload that don't appear.

exextoc commented 1 year ago

Can you try a hard refresh / clear cache and see if sideloaded add-ins appear? There is a recent roll-out which has happened to fix this issue.

SimonDania commented 1 year ago

I have tried clearing the cache / deleting application data in the browser as well as doing a hard refresh, but unfortunately it doesn't seem to make a difference. I have also tried in the Edge browser as well as in incognito, but none of it made a difference, unfortunately.

We did have some issues with the client as well, but those issues got resolved yesterday after what I believe happens to be the roll-out you are referring to :-)

carlosb1504 commented 1 year ago

Same issue as https://github.com/OfficeDev/office-js/issues/3745? Not just affecting sideloaded add-ins but admin-deployed too. Affecting us internally and our customers too.

exextoc commented 1 year ago

@SimonDania We have a fix getting rolled out currently and expected to be in prod by tomorrow. In case the issue persists tomorrow please post here.

SimonDania commented 1 year ago

@exextoc Perfect, thank you. I will check tomorrow.

avisheknand commented 1 year ago

Some of our accounts seem to have Get-addin button, some of them has the App button (where custom addin does not show). Will wait for a day to see if it reverts back

SimonDania commented 1 year ago

@exextoc I don't know if it's too early to chip in, but it still doesn't seem to work. I have tried doing a hard refresh as well as clearing all cache and application data in my browser.

SimonDania commented 1 year ago

I have cleared my cache this morning and tried again, but unfortunately it seems like it still doesn't work.

carlosb1504 commented 1 year ago

We also have customers not able to see our add-in in their OWA environments which is causing a high number of complaints. Any updates please @exextoc ?

Thanks

SimonDania commented 1 year ago

Parts of the add-in seem to work now in Outlook on the web. The OnNewMessageCompose event correctly fires and the add-in is loaded.

However, it seems the OnMessageRecipientsChanged does not fire at the moment. I'll give it a couple of days and check again.

frnode commented 1 year ago

Parts of the add-in seem to work now in Outlook on the web. The "OnNewMessageCompose" event correctly fires and the add-in is loaded.

However, it seems the "OnRecipientsChanged" does not fire at the moment. I'll give it a couple of days and check again.

I don't know if this can help you, but there are certain events that are not functional in Outlook on the web, see my report: https://github.com/OfficeDev/office-js/issues/3721

Maybe it's related. The events I reported are not firing.

frnode commented 1 year ago

Parts of the add-in seem to work now in Outlook on the web. The "OnNewMessageCompose" event correctly fires and the add-in is loaded.

However, it seems the "OnRecipientsChanged" does not fire at the moment. I'll give it a couple of days and check again.

We have just done a test on our side, OnMessageRecipientsChanged is not triggered on the OWA (nor on Outlook Windows.). By it is functional on the New Outlook (Windows). Did you use the OnMessageRecipientsChanged trigger in your LaunchEvent?

<LaunchEvent Type="OnMessageRecipientsChanged" FunctionName="onMessageRecipientsChangedHandler"/>

SimonDania commented 1 year ago

@frnode Yeah, it is OnMessageRecipientsChanged that we use. Sorry for the mistake! It has started working for some people internally at our company.

exextoc commented 1 year ago

@frnode @SimonDania Are you still facing the issue for Outlook on the Web. If so, can you provide following details about the add-in.

SimonDania commented 1 year ago

@exextoc The add-in appears and the event OnNewMessageCompose fires as expected. However, the event OnMessageRecipientsChanged does not fire, so that part still doesn't work.

We can't seem to get the OnNewMessageCompose event to fire on mobile either.

SimonDania commented 1 year ago

Update: OnMessageRecipientsChanged works for us as well now. We haven't made any changes in the meantime, so I assume Microsoft solved it in their end.

I am closing this thread as we are no longer facing issues.