2 Replies Latest reply on Aug 26, 2009 12:22 PM by spilon

    Determine Notifications for a Group

    bpolaski
      What's the fastest way to determine what Notifications a Group is subscribed to? AFNotification.FindNotificationsByContact works great for contacts of type individual, but can't be used for Groups since they don't have an AFContact object defined.
        • Re: Determine Notifications for a Group

          That is correct: AFNotification.FindNotificationsByContact() only works for contacts of type Individual since the basis of the search is an AFContact object (not an AFNotificationContact) and these cannot represent groups.

           

          What you could do is: use AFNotification.FindNotificationsByContact to find all notifications that contain one member of the group you are interested in, then filter those results to make sure those notifications actually use that group-type AFNotifcationContact you are looking for.

           

          I will touch base with the AF and Notifications teams to see what we can do about implementing a version of that method that can use an AFNotificationContact (which can be a group) as the search basis.

            • Re: Determine Notifications for a Group

              Steve Pilon

              I will touch base with the AF and Notifications teams to see what we can do about implementing a version of that method that can use an AFNotificationContact (which can be a group) as the search basis.

               

              To just close the loop on this one, a work item was created for this such a method to be implemented. Note that this is an internal work item for now, meaning you won't see that as a Punchlist Item (PLI) on our tech support website. But it's in there