S
Steve*n
My organization utilizes conference rooms as resources when creating Outlook
appts. So I can click an Add Rooms button and then select a room to add as a
resource within an Outlook meeting request. When I click send the calendar
of that resource is updated accordingly.
I want to be able to mimic this functionality programmatically, ideally in
asp.net but an Outlook Add-In would work as well. I have the code below but
it doesn't send anything to the resource. How can I get a list of resources
and then schedule that resource for a meeting?
Outlook.Application app = this.Application;
Outlook.AppointmentItem appt =
(Outlook.AppointmentItem)app.CreateItem(Microsoft.Office.Interop.Outlook.OlItemType.olAppointmentItem);
appt.Subject = "test";
appt.Location = "Conf Room - Level 1";
appt.Start = Convert.ToDateTime("1/19/2009 6:00:00 PM");
appt.End = Convert.ToDateTime("1/19/2009 7:00:00 PM");
appt.Body = "Test";
appt.Resources = "Conf Room - Level 1";
appt.RequiredAttendees = (e-mail address removed);
appt.Save();
Thanks
appts. So I can click an Add Rooms button and then select a room to add as a
resource within an Outlook meeting request. When I click send the calendar
of that resource is updated accordingly.
I want to be able to mimic this functionality programmatically, ideally in
asp.net but an Outlook Add-In would work as well. I have the code below but
it doesn't send anything to the resource. How can I get a list of resources
and then schedule that resource for a meeting?
Outlook.Application app = this.Application;
Outlook.AppointmentItem appt =
(Outlook.AppointmentItem)app.CreateItem(Microsoft.Office.Interop.Outlook.OlItemType.olAppointmentItem);
appt.Subject = "test";
appt.Location = "Conf Room - Level 1";
appt.Start = Convert.ToDateTime("1/19/2009 6:00:00 PM");
appt.End = Convert.ToDateTime("1/19/2009 7:00:00 PM");
appt.Body = "Test";
appt.Resources = "Conf Room - Level 1";
appt.RequiredAttendees = (e-mail address removed);
appt.Save();
Thanks