An Office service that supports add-ins to interact with objects in Office client applications.
"Office.context.officeTheme" Javascript API gives empty object while i using to get outlook theme for my Add-in in mac desktop app
I'm developing an Office add-in for Outlook and need to dynamically adjust the add-in's appearance based on the currently selected theme in Outlook. The Office.context.officeTheme object provides the necessary theme color information on most platforms, but it returns an empty object when used in Outlook on Mac desktop. But the thing is this API is working for windows web,desktop App and Mac web also its working.
Office.onReady(info => { if (info.host === Office.HostType.Outlook) { console.log(Office.context.officeTheme); // Outputs an empty object on Mac desktop Outlook } });
Microsoft 365 and Office | Development | Office JavaScript API
Microsoft 365 and Office | Install, redeem, activate | For business | Windows
Processes in Microsoft 365 for setting up Office apps, redeeming product keys, and activating licenses.