【发布时间】:2014-05-21 15:16:22
【问题描述】:
目标:制作一个可以显示当前用户拥有的所有联系人以及当前用户拥有的具有相关机会的任何联系人的视图。
问题:即使在查看了我可以通过 Google 搜索到的内容后,我也没有很好的 fetchxml 或链接实体命令。当我尝试使用我的 fetch 语句构建视图时,它没有带回任何东西,所以我认为我构建它不正确。
这是我到目前为止所做的声明:
<fetch version='1.0' output-format='xml-platform' mapping='logical' distinct='true'>
<entity name='contact'>
//big list of attributes
<order attribute='fullname' descending='false' />
<link-entity name='opportunity' from='customerid' to='contactid' alias='aa'>
<filter type='and'>
<condition attribute='ownerid' operator='eq-userid' />
</filter>
</link-entity>
<filter type='or'>
<condition attribute='ownerid' operator='eq-userid' />
</filter>
</entity>
</fetch>
任何提示将不胜感激,谢谢!
【问题讨论】:
-
你是在 fetchXml 查询之后吗?
-
一个全新的,或了解我的可能有什么问题。无论哪种方式。
标签: dynamics-crm-2011 dynamics-crm fetch dynamics-crm-2013 fetchxml