How to schedule a live meeting via outlook object model

H

huangbo74

Hi all,

I install conference add in in outlook which allow to schedule a live
meeting or conference call.

My old C# code is able to create a new meeting request or new appointment
via outlook ojbect model programming interface. now I want to add schedule a
live meeting functionality in my c# code, but I don't know how to do.

I use outlook spy to identify the message class of live meeting is
"IPM.Appointment.Live Meeting Request" and also it's belong to Appointment
Item.

I try to use to following code to do it, but it fails
olMeetingRequest = (Outlook.AppointmentItem)
m_olProvider.OlCalendarItems.Add(Outlook.OlItemType.olAppointmentItem);
olMeetingRequest.Subject = title;
olMeetingRequest.RequiredAttendees = to;
// set it to meeting request
olMeetingRequest.MeetingStatus = Outlook.OlMeetingStatus.olMeeting;
olMeetingRequest.MessageClass = "IPM.Appointment.Live Meeting Request" ;
// display
olMeetingRequest.Display(System.Reflection.Missing.Value);


Regards,
Bo
 
S

Sue Mosher [MVP-Outlook]

To create an item using a custom form, use the MAPIFolder.Items.Add method on the target folder, passing the message class string as an argument.
 
H

huangbo74

Hi Mosher,
Thanks for your help. I try to use MAPIFolder.Items.Add l, but it still
not work.

olMeetingRequest =
(Outlook.AppointmentItem)m_olProvider.MAPIFolder.Items.Add("IPM.Appointment.Live Meeting Request"););
olMeetingRequest.Subject = title;
olMeetingRequest.RequiredAttendees = to;
// set it to meeting request
olMeetingRequest.MeetingStatus = Outlook.OlMeetingStatus.olMeeting;
olMeetingRequest.MessageClass = "IPM.Appointment.Live Meeting Request" ;
// display
olMeetingRequest.Display(System.Reflection.Missing.Value);

The above code just display a regular meeting request form, not live meeting
form. and I use outlook spy find the MessageClass property of
olMeetingRequest is "IPM.Appointment.Live Meeting Request",
but the property of olMeetingRequest.FormDescription.MessageClass is
"IPM.Appointment".

Could you have any suggestions? Thanks

Regards,
Bo
 
S

Sue Mosher [MVP-Outlook]

This is in what version of Outlook? Have you figured out where the Live Meeting Request form is published?

My guess is that at least some of the behavior of the Live Meeting appointment form is governed by an add-in, possibly using some hidden MAPI properties. If that's the case, then what you're trying to do is reverse engineer that functionality. That may take more digging with Outlook Spy, if it's possible at all.

Note that you do not need to change the MessageClass property of an item that you created by passing a message class value to Items.Add.

--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook 2007 Programming:
Jumpstart for Power Users and Administrators
http://www.outlookcode.com/article.aspx?id=54
 
R

Rafael

If I understand correctly the requirement here, you need to use the Live
Meeting API
to be able create LM appointments. See this link for a download of the API
docs which have info on how to do this.
http://msdn2.microsoft.com/en-us/office/aa905513.aspx

Of course, it assumes you advanced knowledge of programming which is the
reason I have not been able to do this very same thing with my VSTO code.

I have some examples of the vbscript code borrowed from the site above which
I can share with you if you send me an email.

Rafael
 

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