0
我正在使用本地crm动态2011,并且在以下情况下我正面临问题。在基于系统角色“系统管理”查找场希望看到所有的选项和剩余用户要显示需要options.Please检查这个代码已筛选的查找MS CRM 2011中的错误
function preFilterLookup()
{
var viewId="{203CEC53-AFA2-E711-855D-0050568A00CA}";
var entityName="mmm_escalationactionowner";
var viewName="Escalation Action Owner Filtered";
var filterXML="<fetch version='1.0' output-format='xml-platform' mapping='logical' distinct='false'>"
+ "<entity name='new_escalationactionowner'>"
+ "<attribute name='new_escalationactionownerid' />"
+ "<attribute name='new_name' />"
+ "<attribute name='createdon' />"
+ "<order attribute='new_name' descending='false' />"
+ "<filter type='and'>"
+ "<filter type='or'>"
+ "<condition attribute='new_name' operator='eq' value='CBC' />"
+ "<condition attribute='new_name' operator='eq' value='AMT' />"
+ "</filter>"
+ "</filter>"
+ "</entity>"
+"</fetch>";
var layoutXML="<grid name='resultset' object='1' jump='name' select='1' icon='1' preview='1'>"
+"<row name='result'>"
+"<cell name='name' width='100'/></row></grid>";
}
您可能想检查这篇文章:https://crmtipoftheday.com/747/if-your-view-is-broken/。而且,虽然这不太可能是问题,但请注意,在FetchXML中,'节点是不必要的。 –
Aron
如果我删除显示错误“无效的XML(传递给平台的XML不是格式良好的XML)的”“ –
Raj
请发布该函数的所有代码 – Sxntk