0
votes

i am trying to develop an Outlook Addin which updates a web services whenevery the ser moves an appointment (with drag and drop) in his calendar. In my VSTO based Outlook Addin (in Outlook 2016) my Item_Change gets fired when the user moves the calendar item around. But when I inspect the AppointmentItem which I get as a parameter of the call to

public void Item_Change(Object item)
{
    Outlook.AppointmentItem myAppointment = item as Outlook.AppointmentItem;                        

the myAppointment.StartUTC still shows the old value instead of the value (date/time) where the user has moved the item.

Does anyone know how to retrieve the new date/time of a moved AppointmentItem?

Thanks in advance

1
Please view the possible solution at: stackoverflow.com/questions/60376400/…HHeckner

1 Answers

0
votes

Not using the Outlook Objector Model - it likes caching old stale values. All items are affected, but appointments are the worst - sometimes you would also need to change the current folder and come back. You would need to release the item in question, open another item, and only then open this item by its entry id. The problem you cannot do that from the event handler of the item that raises the event.

Your only other options are Extended MAPI (C++ or Delphi only) or Redemption.