Discussion:
Respond a Meeting Request programmatically
(too old to reply)
Bharathi
2007-08-03 10:30:36 UTC
Permalink
Hi,

I am trying to send a response the outlook meeting request
programmatically.

I am using C#.net (VS 2005) for developing an add-in for outlook 2003.

Here is my Code:

Outlook.AppointmentItem aapp = (obj as
Outlook.MeetingItem).GetAssociatedAppointment(true);
aapp.MeetingStatus = Outlook.OlMeetingStatus.olMeetingReceived;
aapp.Respond(Outlook.OlMeetingResponse.olMeetingAccepted, true,
true);
aapp.Save();
aapp.Send();

I am able to send the response.. However the "Sent Items" folder is
not getting updated.

Some one please let me know where am I going wrong..

Regards,
Bharathi
Sue Mosher [MVP-Outlook]
2007-08-03 12:01:45 UTC
Permalink
You're sending the wrong item. You need to send the meeting response that aapp.Respond returns.
--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook 2007 Programming:
Jumpstart for Power Users and Administrators
http://www.outlookcode.com/article.aspx?id=54
Post by Bharathi
Hi,
I am trying to send a response the outlook meeting request
programmatically.
I am using C#.net (VS 2005) for developing an add-in for outlook 2003.
Outlook.AppointmentItem aapp = (obj as
Outlook.MeetingItem).GetAssociatedAppointment(true);
aapp.MeetingStatus = Outlook.OlMeetingStatus.olMeetingReceived;
aapp.Respond(Outlook.OlMeetingResponse.olMeetingAccepted, true,
true);
aapp.Save();
aapp.Send();
I am able to send the response.. However the "Sent Items" folder is
not getting updated.
Some one please let me know where am I going wrong..
Regards,
Bharathi
Bharathi
2007-08-06 03:40:06 UTC
Permalink
Hi Sue Mosher,

Thanks a lot for the reply.. I am able to send the meeting response
programmatically and Also my "Sent Items" folder is getting updated.

Regards,
Bharathi
Post by Sue Mosher [MVP-Outlook]
You're sending the wrong item. You need to send the meeting response that aapp.Respond returns.
--
Sue Mosher, Outlook MVP
Jumpstart for Power Users and Administrators
http://www.outlookcode.com/article.aspx?id=54
Post by Bharathi
Hi,
I am trying to send a response the outlook meeting request
programmatically.
I am using C#.net (VS 2005) for developing an add-in for outlook 2003.
Outlook.AppointmentItem aapp = (obj as
Outlook.MeetingItem).GetAssociatedAppointment(true);
aapp.MeetingStatus = Outlook.OlMeetingStatus.olMeetingReceived;
aapp.Respond(Outlook.OlMeetingResponse.olMeetingAccepted, true,
true);
aapp.Save();
aapp.Send();
I am able to send the response.. However the "Sent Items" folder is
not getting updated.
Some one please let me know where am I going wrong..
Regards,
Bharathi- Hide quoted text -
- Show quoted text -
Loading...