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