Filtering Entities with type Entity Reference?

前端 未结 3 815
旧时难觅i
旧时难觅i 2021-01-26 11:30

How do I query using the string value for an entity reference object?

QueryExpression query = new QueryExpression(\"entityName\");
query.Criteria = new FilterExp         


        
3条回答
  •  鱼传尺愫
    2021-01-26 11:41

    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

提交回复
热议问题