About migrating Outlook add-ins from old Outlook to new Outlook

Kataoka, Hiroki 0 Reputation points
2023-09-12T02:43:23.57+00:00

There is information that the following new Outlook will be migrated from 2024.

https://www.microsoft.com/en-us/microsoft-365/outlook/outlook-for-windows

Due to the new Outlook starting next year, we are verifying the operation of the Outlook add-in in order to migrate from the old Outlook to the new Outlook.

After loading Office.js, the value of Office.context.ui becomes undefined after the Office.onReady (which means Office.js is ready to use) event handler fires.

This worked fine in the old Outlook, but when testing the operation in the new Outlook, it seems that an error occurs because there is no value for Office.context.ui.

The process of starting the add-in and the error flow is as follows.

Create a new email > Start the Outlook add-in in the new email dialog > Outlook browser starts > Access the web application > An error occurred when referring to the method of Office.context.ui (the value of Office.context.ui is for undefined)

I would like to know if there is a specific solution on how to obtain Office.context.ui.

Outlook
Outlook
A family of Microsoft email and calendar products.
3,818 questions
JavaScript API
JavaScript API
An Office service that supports add-ins to interact with objects in Office client applications.
982 questions
{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.