Quantcast
Channel: Exchange Server Development forum
Viewing all articles
Browse latest Browse all 7132

Handling Recurring Events

$
0
0

Hi All,

I'm developing software to integrate our systems with Exchange and have setup notification listeners for changes in an individual's calendar.

Because the "Deleted" event isn't being fired when an item is deleted from the users calendar, I'm instead using the modifed event to handle it all. When the event is fired this triggers another function which uses the following code to determine if the appoinment exists:

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

If the appointment is found then the UpdatePortalAppointment() method is called which updates the database for our backend systems, otherwise delete the appointment from the database.

However when single instances of reccurring events are deleted from the calendar, Appt returns the ReccurringMaster appointment not the single deleted event.

Is there a way to force the single occurance to return not the master?

Thanks


Viewing all articles
Browse latest Browse all 7132

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>