Event based action in Outlook web addin stops working after Admin deployment

William 25 Reputation points
2024-05-29T10:04:37.93+00:00

We are developing a Outlook web addin following Microsoft documents that consists of manifest.xml, webpack.config.js etc. It has:

  • a button we can click to display a taskpane
  • an Event based action to display a sentence in infobar automatically triggered by "OnMessageCompose"

When we sideload by running npm on localhost, both the button and that Event based action work well, on both Outlook application and Outlook on web.

When Admin deployed (we just replaced localhost by remote url in manifest.xml), the button still work well.

But for that Event based action:

  • now in Outlook application, upon composing an email, infobar is not displayed, and it displays a taskpane saying:

ADD_IN ERROR

We can't start this add-in because it isn't set up properly.

  • in Outlook on web, infobar is not displayed, and it shows no error.

Since the addin is now hosted remotely, I believe we can not debug in VS Code any more.

I tried to debug in Outlook on web (chrome) by pressing F12. Under Network tab it does show it successfully downloaded that javascript file successfully. However under the Source tab it does not show that javascript file at all. Under the domain hosting this addin it only showed the assets/ folder.

What is the problem? And how I should debug?

Thanks.

Outlook
Outlook
A family of Microsoft email and calendar products.
3,818 questions
Office Development
Office Development
Office: A suite of Microsoft productivity software that supports common business tasks, including word processing, email, presentations, and data management and analysis.Development: The process of researching, productizing, and refining new or existing technologies.
3,896 questions
Outlook Management
Outlook Management
Outlook: A family of Microsoft email and calendar products.Management: The act or process of organizing, handling, directing or controlling something.
5,229 questions
0 comments No comments
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.