I am developing a VSTO outlook addin, that will create an appointment/meeting. I use the following code to create the appointment/meeting:
Globals.ThisAddIn.Application.CreateItem(Outlook.OlItemType.olAppointmentItem)
If the user clicks into a different calendar ( second account or an account that they have delegate access) to how can I create the appointment in the selected calendar?
I know I can do this with the below code but how do I get the correct folder ?
items = calendarFolder.Items;
appItem = items.Add(Outlook.OlItemType.olAppointmentItem) as Outlook.AppointmentItem;
appItem.Save();
appItem.Display(true);