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. Under Microsoft Exchange server, select or clear the Use. On the E-mail tab, click the Exchange account, and then click Change. Click Account Settings, and then click Account Settings. TextBo圎mployeeID.Text = currentUser.Alias Turning on Cached Mode in Outlook 2010 (Windows) To turn on Cached Mode in Outlook 2010, In Outlook 2010, click the File tab. ***** 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() 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.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. |