我正在为帐户创建一个子网格,以按多个字段显示所有相关联系人。
这是我试图设置的 fetch xml:
<fetch mapping="logical">
<entity name="contact">
<attribute name="firstname" />
<filter type="or">
<condition attribute="new_behorde" operator="eq" value="" />
<condition attribute="new_behorde2" operator="eq" value="" />
<condition attribute="new_behorde3" operator="eq" value="" />
</filter>
</entity>
我使用 document.getElementById("contacts").control.SetParameter 方法进行设置。
但是如果我尝试运行 document.getElementById("contacts").control.refresh(),有效的获取 xml 就会变成:
<fetch mapping="logical">
<entity name="contact">
<attribute name="firstname" />
<filter type="and">
<condition attribute="new_behorde" operator="eq" value="" />
<filter type="or">
<condition attribute="new_behorde" operator="eq" value="" />
<condition attribute="new_behorde2" operator="eq" value="" />
<condition attribute="new_behorde3" operator="eq" value="" />
</filter>
</filter>
</entity>
发生这种情况是因为我选择了 new_behorde 作为子网格中的相关字段。
那么我可以以某种方式避免添加这个额外的过滤器和额外的条件吗?
在表单编辑器中设置子网格时,选择要返回所有记录,而不仅仅是与该实体相关的记录。然后 CRM 将不理会您的 FetchXml。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)