Hello ,
I used the below code in ms crm javascript ,it is giving an error if i put the "Like" operator condition so please suggest me how to pass string in a like operator condition.
var filproduct = Xrm.Page.getAttribute("new_typeoffilproduct").getText();
var fetchXml = "<fetch version='1.0' output-format='xml-platform' mapping='logical' distinct='false'>"+
"<entity name='new_customersaleszone'>"+
"<attribute name='new_subdepartment' />"+
"<attribute name='new_saleszone' />"+
"<attribute name='new_department' />"+
"<attribute name='ownerid' />"+
"<attribute name='new_customer' />"+
"<attribute name='createdon' />"+
"<attribute name='new_customersaleszoneid' />"+
"<order attribute='new_subdepartment' descending='false' />"+
"<filter type='and'>"+
"<condition attribute='new_customer' operator='eq' uiname='Customer Sync check from UAT' uitype='account' value='"+customerId+"' />"+
"<condition attribute='new_departmentname' operator='like' value='""%"+filproduct+"%""' />"+
"</filter>"+
"</entity>"+
"</fetch>";
*This post is locked for comments
I have the same question (0)