![]() |
If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
![]()
Hi,
I developed an add-in to Outlook 2007 that automatically accepts meetings of the certain type. However, I am cannot figure out how automatically accept meeting cancelations. When cancelation arrives, I can intercept it in my add-in but I am not sure what method to call to accept it and remove from my calendar. Each time I have to go to my inbox and click ‘Remove from Calendar’ button manually. How can I do it from code? Thanks. if (meeting.MessageClass == "IPM.Schedule.Meeting.Request") { // auto-respond appointment.Respond(Microsoft.Office.Interop.Outlo ok.OlMeetingResponse.olMeetingAccepted, true, Type.Missing); // move to delete folder Outlook.Folder delete = Application.Session.GetDefaultFolder(Microsoft.Off ice.Interop.Outlook.OlDefau ltFolders.olFolderDeletedItems) as Outlook.Folder; meeting.Move(delete); } else if (meeting.MessageClass == "IPM.Schedule.Meeting.Canceled") { // ???? // how to auto respond and remove from calendar } |
#2
|
|||
|
|||
![]()
Sorry, I have found an answer myfelf. That works fine.
appointment.MeetingStatus = Microsoft.Office.Interop.Outlook.OlMeetingStatus.o lMeetingCanceled; olMeetingCanceled meeting.Delete(); "Uriah65" wrote: Hi, I developed an add-in to Outlook 2007 that automatically accepts meetings of the certain type. However, I am cannot figure out how automatically accept meeting cancelations. When cancelation arrives, I can intercept it in my add-in but I am not sure what method to call to accept it and remove from my calendar. Each time I have to go to my inbox and click ‘Remove from Calendar’ button manually. How can I do it from code? Thanks. if (meeting.MessageClass == "IPM.Schedule.Meeting.Request") { // auto-respond appointment.Respond(Microsoft.Office.Interop.Outlo ok.OlMeetingResponse.olMeetingAccepted, true, Type.Missing); // move to delete folder Outlook.Folder delete = Application.Session.GetDefaultFolder(Microsoft.Off ice.Interop.Outlook.OlDefau ltFolders.olFolderDeletedItems) as Outlook.Folder; meeting.Move(delete); } else if (meeting.MessageClass == "IPM.Schedule.Meeting.Canceled") { // ???? // how to auto respond and remove from calendar } |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Auto accept meeting invitations | HarmnyLady | Outlook - Calandaring | 1 | August 20th 08 11:16 PM |
outlook auto accept meeting | Salvatore Cennimo | Outlook - General Queries | 1 | February 16th 08 05:07 AM |
Send meeting cancelation notice. | dbornt | Outlook and VBA | 5 | February 28th 07 09:55 PM |
Auto Accept - meeting requests | LookOut | Outlook - Calandaring | 3 | October 9th 06 07:36 AM |
auto accept of meeting | Rossingol | Outlook - Calandaring | 2 | July 29th 06 07:09 AM |