We are trying to get list of contacts programmatically in latest Sitecore 9.0.1
. We want to show list of contacts on pages based on their linkage to certain list.
We need to get the same list of contacts that we can see in List Manager for either Contact List
or Segmented List
types.
Our aim is to get contacts for segmented lists in first place. We have created couple of segmented lists that have only one rule and that goal has been triggered for that contact.
Best would be to get list of contacts directly for defined segmented list but getting list of contacts where interaction with precise goal was trigger would do the trick also (as it would copy rule on segmented list).
There is no mentioning of this in documentation as far as I can see and decompiling Sitecore code was not helpful so far neither.