I'm trying to get the list of members of a dynamic marketing list. When it's only a single (or just a few) lists, I could fetch the results of the underlying query individually. However, when the number of marketing lists raises, the fetching one-by-one becomes quite ineffective.
For static marketing lists it should be straight-forward, I expect. I should be able to fetch all instances of the entity Contact (or whatever the base type used for its creation is) when filtering for a set of guids corresponding to all the marketing lists based on Contact in my QueryExpression object. Is that correctly perceived?
(How) can I fetch all the underlying members of all the dynamic list on the server?
EDIT: This is the automagically generated fetch-XML.
<fetch version="1.0" output-format="xml-platform" mapping="logical" distinct="false">
<entity name="account">
<attribute name="name" />
<attribute name="primarycontactid" />
<attribute name="telephone1" />
<attribute name="accountid" />
<order attribute="name" descending="false" />
</entity>
</fetch>