![]() ![]() ![]() Delete the old Offline Address Book then force an update (Doesn't work).Force a Offline Address book update (Doesn't work).I have tried a number of suggestions I've found online, none of them have worked. TextBo圎mployeeID.Text = currentUser.Alias ***** currentUser = Outlook.ExchangeUser object when "Use Cached Exchange Mode" is disabled. ***** currentUser = null when "Use Cached Exchange Mode" is enabled. Outlook.ExchangeUser currentUser = .GetExchangeUser() ![]() Outlook.Application app = new Outlook.Application() Go to the File tab, choose Info on the left side of the screen. How can I force (temporarily) Outlook to connect to Exchange so that GetExchangeUser() works?Īre there any alternative ways of collecting the Exchange user information? // Create a singleton of the Application instance. Outlook 2016 How to remove cached mode Note: ITS advises running Outlook 2016 in cached mode for better performance.I suspect that the Cached mode causes this not to be the case all the time and therefore the method fails. My rough understanding is that GetExchangeUser() only works when connected to the Exchange Server. However my company wants to keep this feature enabled. If I disable the clients Cached Exchange Mode everything works fine. However, it appears that when the Outlook Account Settings is configured with Cached Exchange Mode enabled the GetExchangeUser() returns null. My company is running on O365 (Exchange) and I am developing an add-in which collects their exchange user information and does various things.
0 Comments
Leave a Reply. |