CRM 2011 FetchXML returning invalid XML -


i trying retrieve account fetchxml returning invalid xml:

    function selectloadouttransactioncurrency(id) { debugger; var _oservice = new fetchutil(_sorgname, _sserverurl); var sfetch = "<fetch mapping='logical'>" + "<entity name='salesorder'>"+ "<attribute name='transactioncurrencyid' />" + "<filter type='and'>" + "<condition attribute = 'salesorderid' operator='eq' value='" + id + "'/>" + "</filter>" + "</entity>" + "</fetch>";  var fetchresult =_oservice.fetch(sfetch, null); return fetchresult.results[0].attributes["transactioncurrencyid"].guid; }  function getsuppliers(){   debugger; _oservice = new fetchutil(_sorgname, _sserverurl); var sfetch = "<fetch version='1.0' output-format='xml-platform'    mapping='logical' distinct='false'>" +  "<entity name='account'>" +  "<attribute name='name' />" +  "<attribute name='accountid' />" +  "<order attribute='name' descending='false'/>" +  "<filter type='and'>" +  "<condition attribute='new_accounttype' operator='eq' value='100000001'/>" +  "</filter>" +  "</entity>" +  "</fetch>";          var fetchresult =_oservice.fetch(sfetch, null);  return fetchresult;  }     function addoption(selectbox, text, value) {         var optn = document.createelement("option");         optn.text = text;         optn.value = value;         selectbox.options.add(optn);     } 

the name attribute has invalid character (').. there way escape character or there update rollup in place?


Comments

Popular posts from this blog

python - pip install -U PySide error -

arrays - C++ error: a brace-enclosed initializer is not allowed here before ‘{’ token -

cytoscape.js - How to add nodes to Dagre layout with Cytoscape -