Home

Dec 7, 2010

CRM 2011 : Retrieve related entity data

I was working on requirement of retrieving users for a particular team. Team & users are N:N related. I might need to right long LinkEntity query to retrieve users for particular team. Guess what, I can do it using RelatedEntitiesQuery property of RetrieveRequest . You also specify the codition for related entity which can’t be done using LinkedEntity. It is a simple code where you need to specify the relationship name between two entities: