HI
How can i delete an existing outlook appointment item.In the time of creating i save the entry id into Database.
Is it possible to delete the item with the help of Entry Id?
Regards
Pradeep
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
pradeep kumarPosted Oct 19, 2009, 6:00 AM
Thanks for your reply.But i done it like the following code
Microsoft.Office.Interop.Outlook.Application OlApp = new Microsoft.Office.Interop.Outlook.Application();
NameSpace OlNamspace = OlApp.GetNamespace("MAPI");
MAPIFolder AppointmentFolder=OlNamspace.GetDefaultFolder(OlDefaultFolders.olFolderCalendar);
AppointmentFolder.Items.IncludeRecurrences = true;
foreach (AppointmentItem app in AppointmentFolder.Items)
{
if (app.EntryID == SelectedOutlookEntryID)
{
app.Delete();
}
}
Regards
Pradeep
Master BillaPosted Sep 21, 2009, 10:13 AM
my code