none
How to get folder to selected AppointmentItem in VSTO RRS feed

  • Question

  • Hi, 

    I am creating a AddIn for Outlook 2003, which read selected AppointmentItem and push to DataBase.  If selected Appointment is the current user's own Calendar, I don't have issue.  I can use AppointmentItem.Session.GetDefaultFolder( folder).  But if selected AppointmentItem is from any shared calendar than, How can I  get the Folder.  I am using AppointmentItem.EntryID and Folder's storeID to get the GlobalID of the Appointment to determine the uniqueness.

    Help is highly appreciated.

    Tuesday, January 10, 2012 11:19 PM

Answers

  • Use AppointmentItem.Parent.

    For the single instance or non-recurring appointments you will get back MAPIFolder.

    For the instances or recurring appointments you will get back the master AppointmentItem.


    Dmitry Streblechenko (MVP)
    http://www.dimastr.com/redemption
    Redemption - what the Outlook
    Object Model should have been
    Version 5.2 is now available!
    Wednesday, January 11, 2012 3:04 AM