Use the ContactGroupServices.BeginUpdateContact
method (and the corresponding EndUpdateContact
).
This method takes a Contact
parameter, which in turn has a collection of group numbers called GroupIds
.
The workflow would be:
- Get the
GroupId
of the group you want to remove the contact from. - Get the
Contact
entry you want to remove from the group. - Remove the
GroupId
from his collection ofGroupIds
. - Call
BeginUpdateContact
with the new contact details.