In our application, we create a draft meeting request following the example given in DraftAppointmentRequest.java and save the appointment’s unique id in our database. When the email gets sent, the meeting is added to both the sender and recipient’s calendars, as expected.
MailMessage message = new MailMessage(sender, recipient);
Appointment app = new Appointment(“location”, “summary”, “description”, startDate, endDate, organizer, attendees);
MapiMessage msg = MapiMessage.fromMailMessage(message, …);