Hello,
I am trying to get the collection of related entities and I am not succeeding.
My code:
using (var _service = new OrganizationServiceProxy(new Uri(url), null, clientCredentials, null))
{
_service.EnableProxyTypes();
Guid _accountId = new Guid("e7385903-d01f-ea11-a810-000d3a654128");
Guid _contactId = new Guid("ce30c7ae-cf1f-ea11-a810-000d3a654128");
var filter = new FilterExpression();
filter.AddCondition("accountid", ConditionOperator.Equal, _accountId);
var account = RetrieveFirstOrDefault(filter);
//How to fill in the account contacts
//account.ait_account_contact
return account;
}
I will appreciate any help, thank you.