Read out of office from exchange server for other

2019-08-30 19:16发布

问题:

Is it possible to pull out of office information for different users (not the current user) from MS Exchange 2010 SP2 by consuming EWS through jDeveloper.

回答1:

Sure, OOF on/off is just a property on the mailbox store.

Assuming you are using the Outlook Object Model, you can access the PR_OOF_STATE MAPI property (DASL name http://schemas.microsoft.com/mapi/proptag/0x661D000B) using Store.PropertyAccessor.GetProperty.