【发布时间】:2020-12-13 15:02:14
【问题描述】:
我正在尝试使用 web api 查询并且没有 fetchxml,我能够构建此端点,但结果集的行为类似于 LEFT OUTER JOIN,但我需要 INNER JOIN。
new_demo 正在查找 new_currentappointment(最近的记录是从子网格列表中捕获的),new_currentappointment 正在查找 new_user。
我想要new_demo 和new_currentappointment_lookup 的列表,其中new_user_lookup 是过滤器。
https://crmdev.crm.dynamics.com/api/data/v9.1/new_demo?$select=new_attribute_one&$expand=new_currentappointment_lookup($select=new_attribute_two;$filter=_new_user_lookup_value eq <guid>)
结果将每个new_demo 带入系统,但扩展过滤器仅产生空值。如何从主结果中的扩展实体中消除过滤后的空结果?
"value": [
{
"@odata.etag": "W/\"608177550\"",
"new_attribute_one": "Demo 1",
"new_currentappointment_lookup": {
"new_attribute_two": "testing comments",
"_new_user_lookup_value": "guid",
},
},
{
"@odata.etag": "W/\"608177790\"",
"new_attribute_one": "Demo 2",
"new_currentappointment_lookup": null,
}
]
ASP.NET web api documentation 中解释的这个结果是我正在寻找的结果,但我找不到 Dynamics CRM web api 的结果。还有其他我想念的简单方法吗?
【问题讨论】:
-
继续讨论 github 问题 - github.com/MicrosoftDocs/powerapps-docs/issues/1692
标签: asp.net-web-api dynamics-crm dynamics-crm-webapi