1
votes

I am trying to update some outlook appointment item data (Subject and location to be specific) just before the inspector closes.

From this thread I found out that the closing event sequence is:

  1. checks the status of the underlying item to see if it needs saving or not
  2. if yes does the write
  3. then calls the form region close handler

I need to get some code running before step 1 executes.

The only events I know of around this region is OutlookFormRegion.Close, but this is already too late step 1 and 2 have already passed by then.

The formregion (A C# form with a C# usercontrol) itself does also not fire an event before this modification check.

In essence I am looking for the closing event instead of the closed

1

1 Answers

0
votes

If you just want to update the appointment data, then why not just update the subject etc and do a Save() on the object from the close handler? That means it could be written twice, but at least you get your info into the right place.