小编Dav*_*oyt的帖子

Fetchxml 获取具有当前用户作为所有者 CRM 2013 的活跃机会的联系人

目标:创建一个视图,可以显示当前用户拥有的所有联系人,以及当前用户拥有的任何具有关联机会的联系人。

问题:即使在查看了我可以搜索的有关 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>
Run Code Online (Sandbox Code Playgroud)

任何提示将不胜感激,谢谢!

dynamics-crm fetch fetchxml dynamics-crm-2011 dynamics-crm-2013

1
推荐指数
1
解决办法
2184
查看次数