When I try to delete a contact, stored in some group with
_contactGroupServices.BeginDeleteContact
-> _contactGroupServices.EndDeleteContact
it's deleting from each group in contact list.
Is it possible to delete this contact only from one selected group?
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:
GroupId
of the group you want to remove the contact from.Contact
entry you want to remove from the group.GroupId
from his collection of GroupIds
.BeginUpdateContact
with the new contact details.