0
votes

I am working on an Outlook add in and it works fine for all the browsers. However it does not work with Outlook 2016. Initially it worked with Mac, but now it doesn't seem to work with either. It seems like the Office.initialize is never called?

I've searched and tried things for hours but nothing works. Comparing my manifest and initialization to others, I seem to have essentially the same code.

I used the yeoman generator and I am using Office UI Fabric React as my framework. Really at a loss at this point, wondering if anyone has any suggestions or a way to see if any errors are thrown in the Outlook Desktop app?

Update After much searching and trying things, and starting from scratch, it seems that the add-in stops working as soon as I start using the Office-JS API. Specifically I'm getting the userProfile and the to, from, cc fields from the email Office.context.mailbox.item.

Still unable to find a solution.

1

1 Answers

0
votes

When using Office-JS APIs, be sure to call those APIs only after Office.initialize has been called.

Beyond that, there are a few options for debugging add-ins in Outlook 2016. The last section on this page describes how to attach the Visual Studio debugger to the process running the add-in. Be sure to enable Script Debugging in IE options.

There also are a couple of newer options for debugging Office add-ins:

For an Outlook add-in running in OWA, just open F12 Developer Tools in any web browser.