Luciano Hamett
New Member
I am making a FetchXML request to CRM from a webresource hosted on the same CRM instanceThis code works in IE but doesn't in Chrome...Why?\[code\] $.ajax({ type: "POST", dataType: 'xml', contentType: "text/xml; charset=utf-8", processData: false, url: path, data: fetchRequest, beforeSend: function(xhr) { xhr.setRequestHeader( "SOAPAction", "http://schemas.microsoft.com/xrm/2011/Contracts/Services/IOrganizationService/Execute" ); //without the SOAPAction header, CRM will return a 500 error } }).done( function(data){ $(data).find("a\\:Entity").each(function () { // loop entered in IE but not in chrome } } );\[/code\]