Quantcast
Channel: CRM Development forum
Viewing all articles
Browse latest Browse all 8223

Dynamics CRM 2011 - how to join ContactSet to Marketing List

$
0
0

Hi,

We are using Dynamics CRM 2011, and I am connecting to the database through the CRM SDK with LINQ.

I want to be able to see what Marketing List's my Contact is joined to. I am using the sample code from the SDK (note there is more code for authentication to the server which I am not including here):


OrganizationServiceProxy _serviceProxy;

IOrganizationService _service;

ServiceContext svcContext = new ServiceContext(_service);

Then I can see all the contacts in "svcContext.ContactSet", and I can also see all the Marketing List in "svcContext.ListSet".

However I am not sure how to join the two tables together. I notice there is "svcContext.ListMemberSet" but I cannot find the link in there which tells me which Contact is in the Marketing List.

Is there another intermediary table which joins them together? Any help would be appreciated.

Thanks.

David


Viewing all articles
Browse latest Browse all 8223

Trending Articles