X++:
field1.AddParam("search",
"<fetch mapping='logical'><entity name='contact'>"
+"<filter type='and'><condition attribute='parentcustomerid' operator='eq' uitype='account' value='"
+crmForm.all.do_accountid.DataValue[0].id
+"'/></filter></entity></fetch>");
(Мой вариант)
Может еще
uitype='account' укажите в условии фильтра uitype='ваша сущность'