How to detect event-based activation support in Officejs

Manuel 25 Reputation points
2024-03-21T15:34:43.6366667+00:00

Our add-in is using event-based activation (OnNewMessageCompose, OnMessageSend). Those events are not critical, therefore we use an unrestricted listing in AppSource. But we'd like to show an information inside the taskpane, if the add-in has been installed directly from AppSource by an user. So it's clear that event-based features of our add-ins won't work. Is there a way in Officejs to detect whether event-based activation is available or the add-in has been installed directly from AppSource by an user?

Microsoft 365
Microsoft 365
Formerly Office 365, is a line of subscription services offered by Microsoft which adds to and includes the Microsoft Office product line.
4,880 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,895 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.