Problem adding attendees to existing appointment

L

Lars

Hi,

I have a problem adding new attendees to an existing appointment using
outlook object model. Pointers to helpful information would be much
appreciated.


I have an existing appointment in Outlook 2007 (beta 2), which might
have any number of attendees. Now I want to add new attendees to the
appointment. The problem is that the new attendees don't receive their
invitation mails (MeetingItems). The new attendees do show up in the
organizer's calendar (that is: I can see the new attendees that I have
added). But the new attendees have no way of accepting/declining the
meeting.

First i get the Appointment object (called appointment below). Then the
c# code below is run to add new guys to the appointment (error checking
etc is left out for brevity).
-------------
//Add a new participant
Outlook.Recipient participant =
appointment.Recipients.Add(newParticipantName);
participant.Type = (int) Outlook.OlMeetingRecipientType.olOptional;
appointment.Recipients.ResolveAll()

//Send out meeting invitation:
//appointment.Save();
appointment.Send();
 
L

Lars

Lars said:
I have an existing appointment in Outlook 2007 (beta 2), which might
have any number of attendees. Now I want to add new attendees to the
appointment. The problem is that the new attendees don't receive their
invitation mails (MeetingItems). The new attendees do show up in the
organizer's calendar (that is: I can see the new attendees that I have
added). But the new attendees have no way of accepting/declining the
meeting.

After a lot of trial and error I think I found it out on my own: the
trick is to re-read the calendar folder after you have saved the
updated appointment item. Then when you have read the updated
appointment item back from outlook/exhange you can do
appointment.Send(), and it is sent to the relevant recipients.

Lars
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top