These are chat archives for OfficeDev/ews-java-api

24th
Jun 2015
elarbi
@elarbi
Jun 24 2015 15:54
Hi,
Erik van Paassen
@evpaassen
Jun 24 2015 15:55
hi
elarbi
@elarbi
Jun 24 2015 15:55
I want to create an appointment into a colleague calendar. I have editor acces to his calendar.
With the following code
        ExchangeService service = new ExchangeService(ExchangeVersion.Exchange2010_SP2);
        ExchangeCredentials credentials = new WebCredentials("mylogin", PASSWORD);
        service.setCredentials(credentials);
        service.setUrl(new URI("https://blabla/EWS/Exchange.asmx"));
        appointment = new Appointment(service);

        appointment.getRequiredAttendees().add(email);
It's only an invitation.
Erik van Paassen
@evpaassen
Jun 24 2015 15:58
Do you want to create the appointment only in the other calendar, or do you want the other to be an attendee?