debugger;var gidLocationID = event.srcElement.DataValue[0].id;
var xml = "" + "" + "http://schemas.xmlsoap.org/soap/envelope/\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\">" + " " + " http://schemas.microsoft.com/crm/2007/WebServices\">" + " 00000000-0000-0000-0000-000000000000http://schemas.microsoft.com/crm/2007/CoreTypes\">00000000-0000-0000-0000-000000000000>" + " " + " " + " " + " http://schemas.microsoft.com/crm/2007/WebServices\">" + " http://schemas.microsoft.com/crm/2006/Query\" xsi:type=\"q1:QueryExpression\">" + " **EntitySchemaname** " + " " + " " + " ** Attrbute Name 1** " + " >** Attrbute Name 2** " + " " + " " + " " + " " + " " + " new_locationid " + " Equal " + " " + " http://microsoft.com/wsdl/types/\" xsi:type=\"q2:guid\">" + requiredGUID + " " + " " + " " + " " + " " + " " + " " +
" " +
" " +
"";
var xmlHttpRequest = new ActiveXObject("Msxml2.XMLHTTP");
xmlHttpRequest.Open("POST", "/mscrmservices/2007/CrmService.asmx", false); xmlHttpRequest.setRequestHeader("SOAPAction","http://schemas.microsoft.com/crm/2007/WebServices/RetrieveMultiple");
xmlHttpRequest.setRequestHeader("Content-Type", "text/xml; charset=utf-8");
xmlHttpRequest.setRequestHeader("Content-Length", xml.length);
xmlHttpRequest.send(xml);
var resultXml = xmlHttpRequest.responseXML;
var entityNodes = resultXml.selectNodes("//RetrieveMultipleResult/BusinessEntities/BusinessEntity");
if(entityNodes.length>0)
{
var entityNode = entityNodes[0];
var att1Value = entityNode.selectSingleNode('q1:attribute1schemaname').text;
...
}
var xml = "" + "" + "
"
"
"";
var xmlHttpRequest = new ActiveXObject("Msxml2.XMLHTTP");
xmlHttpRequest.Open("POST", "/mscrmservices/2007/CrmService.asmx", false); xmlHttpRequest.setRequestHeader("SOAPAction","http://schemas.microsoft.com/crm/2007/WebServices/RetrieveMultiple");
xmlHttpRequest.setRequestHeader("Content-Type", "text/xml; charset=utf-8");
xmlHttpRequest.setRequestHeader("Content-Length", xml.length);
xmlHttpRequest.send(xml);
var resultXml = xmlHttpRequest.responseXML;
var entityNodes = resultXml.selectNodes("//RetrieveMultipleResult/BusinessEntities/BusinessEntity");
if(entityNodes.length>0)
{
var entityNode = entityNodes[0];
var att1Value = entityNode.selectSingleNode('q1:attribute1schemaname').text;
...
}
Comments