![]() |
Auto-accept meeting cancelation
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 } |
Auto-accept meeting cancelation
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 } |
All times are GMT +1. The time now is 11:14 AM. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2006 OutlookBanter.com