Getting a list of contacts in a contact group.

Richard Coady asked on June 28, 2019 17:32

Hi,

I am trying to get a list of contacts in a specific contact group. I have been using

ContactGroupMemberInfoProvider.GetContactGroupMemberInfo(GROUP_ID);

But it only returns one record. I cannot see another function to get a list of contacts?

Thanks for your help.

This is the solution it is the get relationships call: var groupMembers = ContactGroupMemberInfoProvider.GetRelationships() .WhereEquals("ContactGroupMemberContactGroupID", aGroup.ContactGroupID) .WhereEquals("ContactGroupMemberType", ContactGroupMemberTypeEnum.Contact);

Recent Answers


Brenden Kehren answered on July 1, 2019 14:26

Have you looked at the API Examples yet? Looks like you need to use this class ContactGroupMemberInfoProvider

1 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.