How do I query using the string value for an entity reference object?
QueryExpression query = new QueryExpression(\"entityName\"); query.Criteria = new FilterExp
parentaccountid is a Lookup Property .
LinkEnitity can only be applied for another entities.
The easy way for filtering is adding name at the end of attribute.
query.Criteria.AddCondition("parentaccountidname", ConditionOperator.Like, "%In%");
Thanks to Dave, refer here for Q&A