add resource to meeting request

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
 

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