How to programatically detect a Meeting accept?

Add-in Express™ Support Service
That's what is more important than anything else

How to programatically detect a Meeting accept?
How 2 programatically detect when a invitee accepts a meeting request? 
d henderson




Posts: 39
Joined: 2006-03-06
I have a problem where I wish to have a plugin on the meeting invitee's machine detect when the invitee has accepted a meeting invitation.
Any ideas, examples on how to accomplish this?

Posted 31 Aug, 2006 13:32:17 Top
David Ing




Posts: 56
Joined: 2006-06-27
If you target Outlook 2003 then use an Outlook.Application.NewMail event, determine if the incoming new item is of the right class (Meeting Request, Item.class = olMeeting) and then use a 'myMeeting.GetAssociatedAppointment' call to get the Appointment. With that Appointment reference you can use a .Respond olMeetingAccepted which should do what you want.

Good places for general Outlook programming include:

- http://msdn2.microsoft.com/en-us/library/ms268893.aspx
- http://msdn2.microsoft.com/en-us/library/ms268731.aspx
- http://www.outlookcode.com/forums.aspx
- http://www.officewiki.org/default.aspx/Outlook.AppointmentItem

Although, of course, there is specific ADX advice/stuff to do too, but that ain't me... ;-)

Hope this helps...
Posted 31 Aug, 2006 14:43:26 Top
Sergey Grischenko


Add-in Express team


Posts: 7233
Joined: 2004-07-05
Hi Don.

Please download a little example here:
http://www.add-in-express.com/projects/meetingrequestexample.zip

You can also use the approach described by David.
Posted 31 Aug, 2006 17:31:25 Top
d henderson




Posts: 39
Joined: 2006-03-06

Sergey,

I tried the example you supplied, but it appears you misunderstood.

What I want is to know (within the plugin running on the meeting invitee's Outlook instance) when the meeting invitee actually *Accepts* the meeting invite. How do I detect this?
Posted 01 Sep, 2006 13:17:59 Top
David Ing




Posts: 56
Joined: 2006-06-27
How about looking for when a new Item is added to the Calendar folder? Once Accept is hit then an Appointment is created...
Posted 01 Sep, 2006 15:04:09 Top
d henderson




Posts: 39
Joined: 2006-03-06
Actually, I had already considered triggering off of the new Item created in the calendar to detect a the meeting accept. . I thought someone might know a cleaner way to achieve this. Thanks.
Posted 01 Sep, 2006 15:23:06 Top
Sergey Grischenko


Add-in Express team


Posts: 7233
Joined: 2004-07-05
Hi Don.

You can also connect to the 'Accept' button and execute the code in the add-in when the meeting invitee accepts the meeting invite.
Posted 02 Sep, 2006 19:16:01 Top
d henderson




Posts: 39
Joined: 2006-03-06
Sergey,

The "connect to the 'Accept' button " approach seems optimal for me.
How do I do this? Can you supply a sample project (please...)?

Thanks!
Posted 04 Sep, 2006 08:26:59 Top
Sergey Grischenko


Add-in Express team


Posts: 7233
Joined: 2004-07-05
Hi Don.

Please download the same example again. I have just changed it.

http://www.add-in-express.com/projects/meetingrequestexample.zip
Posted 05 Sep, 2006 05:38:50 Top
d henderson




Posts: 39
Joined: 2006-03-06

Sooo, After testing the Accept button detect I think the most reliable solution is to simply detect the addition of the new appointment in the calendar.
Is there an event that will tell me when this happens? Would you possibly have an example in VB.NET MSVS2005?
Posted 11 Sep, 2006 15:47:41 Top