Find Notifications associated with a delivery endpoint

Discussion created by bpolaski on Nov 24, 2009
Latest reply on Nov 25, 2009 by dmoler

I have all contacts for Notifications defined as Delivery Endpoints using a Custom Delivery Channel.  I am attempting to find all notifications for a given delivery endpoint programatically.  I am able to locate all of the delivery endpoints by doing the following:

Dim contactList As AFNamedCollection(Of AFNotificationContactTemplate)
contactList = AFNotificationContactTemplate.FindNotificationContactTemplates(system, Nothing, AFSearchField.Name, AFSortField.Name, AFSortOrder.Ascending, Integer.MaxValue)

When looping through this list though, each AFNotificationContactTemplate .Contact property has a value of Nothing. Is there a method for retrieving a valid AFContact object for a delivery endpoint, so that I can use the AFNotification.FindNotificationsByContact method?  Or alternatively, is there another method I can use to find all notifications associated with a delivery endpoint?