The List Manager API
Sitecore stores contact lists as marketing definitions. On a Content Manager (CM) instance, you can access contact lists programmatically with the List Manager API.
You cannot use the List Manager API on a Content Delivery (CD) instance because the List Manager application is disabled in this case.
Add, update, and delete a segment
Add, update, and delete a segment
This example shows you how to add a segment using the List Manager API.
The creation and modification of the segment rules can only be done through the List Manager interface.
This example shows you how to update a segment.
This example shows you how to delete a segment.
Add, update, and delete a segmented list
Add, update, and delete a segmented list
This example shows you how to add a segmented list.
To add segments to the list you want to create, use this code snippet.
To save the new segmented list, use this code snippet.
This example shows you how to update a segmented list.
This example shows you how to delete a segmented list.
Add, update, and delete a contact list
Add, update, and delete a contact list
This example shows you how to add a contact list.
To add an included list to the one you want to create, use this code snippet.
To save the new contact list, use this code snippet.
This example shows you how to update a contact list.
This example shows you how to delete a contact list.
Add and remove contacts
Add and remove contacts
This example shows you how to add one contact to a contact list:
This example shows you how to add multiple contacts to a contact list:
To remove a contact association and call the corresponding methods from ISubscriptionService:
Retrieve contacts associated with a list
Retrieve contacts associated with a list
This example shows how you retrieve contacts from a contact list:
The example uses a batch enumerator as the most efficient and the fastest way to iterate over contacts. See the xConnect documentation for more information.