Search code examples
javaexchangewebservicesewsjavaapi

How do I get the appointment status in EWS Java API?


I am using the EWS Java API 1.2 and now I need to expand my program to know if an appointment has a certain status (available, busy, out of office). How can I know this? Looking through to documentation of the appointment class did not bring anything at first sight.


Solution

  • The method to get this info is called getLegacyFreeBusyStatus(). This returns an enum called LegacyFreeBusyStatus with the values Free, Tentative, Busy, OOF or NoData. (OOF being Out Of Office)