Using QueryExpression get the Link Entity details in D365
public static void Main() { EntityCollection salesOrderCollection = this.GetAccounts(customerId, salesOrderCreationDate); } public EntityCollection GetAccounts(string customerId, DateTime AccountBaseCreationDate) { QueryExpression ContactItemQuery = new QueryExpression(AccountBase.LogicalName); // Add Condition to Customer. ContactItemQuery.Criteria.AddCondition(AccountBase.Id, ConditionOperator.Equal, customerId); FilterExpression mainFilter = new FilterExpression(LogicalOperator.And); mainFilter.AddCondition(AccountBase.CreatedOn, ConditionOperator.GreaterThan, AccountBaseCreationDate); FilterExpression statusCodeFilter = new FilterExpression(LogicalOperator.Or); statusCodeFilter.AddCondition(AccountBase.Status, ConditionOperator.Equal, (int)AccountBase.AccountStatus.Submitted); statusCodeFilter.AddCondition(AccountBase.Status, ConditionOperator.Equal, (int)AccountBase.AccountStatus.Fulfilled); statusCodeFilter.AddCondition(AccountBase.Status,