HI Everyone
I am getting
"Executes business logic and special operations using a message-based approach. The Execute method takes a message request class as a parameter and returns a message response class. Executes a query specified in the FetchXML language. The results are returned as an XML string. Creates an instance of an entity. Deletes the instance of the specified entity. Retrieves an instance of the specified entity. Retrieves a collection of entity instances of the specified type, which meet the specified conditions. Updates the instance of the specified entity."
while executing this script
var getCountryCode = function () { // SOAP Envelope var country_lookup = crmForm.all.new_companycountryid.DataValue[0].name; var soap2 = "<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\">"; soap2 += GenerateAuthenticationHeader(); soap2 += "<soap:Body><Fetch xmlns=\"http : // schemas.microsoft.com / crm / 2007 / WebServices\"><fetchXml>"; soap2 += "<fetch mapping='logical'>"; soap2 += "<entity name='new_country'>"; soap2 += "<attribute name='new_countrycode'/>"; soap2 += "<filter type='and'>"; soap2 += "<condition attribute='new_countryenglishname' operator='eq' value='" + country_lookup + "'/>"; soap2 += "</filter>"; soap2 += "</entity>"; soap2 += "</fetch>"; soap2 += "</fetchXml></Fetch></soap:Body></soap:Envelope>"; // Ajax Request var XmlHttp = new ActiveXObject("Msxml2.XMLHTTP"); XmlHttp.open("POST", "/mscrmservices/2007/CrmService.asmx", false); XmlHttp.setRequestHeader("Content-Type", "text/xml; charset=utf-8"); XmlHttp.setRequestHeader("SOAPAction", "http://schemas.microsoft.com/crm/2007/WebServices/Fetch"); XmlHttp.setRequestHeader("Content-Length", soap2.length); XmlHttp.send(soap2); var resultSet = XmlHttp.responseXML.text; // Ajax Response var oXmlDoc = new ActiveXObject("Microsoft.XMLDOM"); // Create an XML document that you can parse. oXmlDoc.async = false; oXmlDoc.loadXML(resultSet); // Load the XML document that has the UnEncoded results. var results = oXmlDoc.getElementsByTagName('result'); if (results.length <= 0) { alert("country code data is not avialable"); } else { var country_code = results[0].getElementsByTagName('new_countrycode')[0].text; return country_code; } };I am using CRM 4 & JScript..
Unsupported customization is fun..keep it running..is a challenge