Hi All,
I'm developing integration between our company's intranet and Exchange.
I'm trying to handle the deletion of reccuring events in Outlook/Exchange, however my previous method of handling deleted appointments is quite clumsy but it works.
Basically, I would get the ID of the Appointment then try to look for it again. Obviously it woudn't find it and using a Try Catch I would catch the exception then delete from our Intranet.
However this isn't working for recurring events, it keeps finding the ReccuringMaster appointment!
This is my code for handling the EventType.Modified notification.
Private Sub ExchangeModified(id As String) Dim props As New PropertySet(BasePropertySet.IdOnly, AppointmentSchema.Subject) Dim appt As Appointment = Nothing Try appt = Appointment.Bind(service, New ItemId(id), props) appt.Load() Catch ex1 As Microsoft.Exchange.WebServices.Data.ServiceResponseException ' object doesn't exist Catch ex As Exception Throw ex End Try If appt Is Nothing Then DeletePortalAppointment(id) Else UpdatePortalAppointment(id) End If End Sub
Thanks