Call crm webservice through Javascript
Most of the time developer need to call crm webservice or external webservice through javascript, here is the code to call crm webservice through javascript. var sEntityName=”nameofentity”; var xml = “<?xml version=”1.0″ encoding=”utf-8″?>” + “<soap:Envelope xmlns:soap=”http://schemas.xmlsoap.org/soap/envelope/” xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” xmlns:xsd=”http://www.w3.org/2001/XMLSchema“>” + GenerateAuthenticationHeader() + ” <soap:Body>” + ” <RetrieveMultiple xmlns=”http://schemas.microsoft.com/crm/2007/WebServices“>” + ” <query xmlns:q1=”http://schemas.microsoft.com/crm/2006/Query” xsi:type=”q1:QueryExpression”>” + ” <q1:EntityName>”… Read more »