xml = "" do var +
"" +
"" +
GenerateAuthenticationHeader () + " “+
“ “+
“ “+
“ “+
“ “+
"" +
"";
o ActiveXObject o mais xmlHttpRequest = novo do var (“Msxml2.XMLHTTP”);
xmlHttpRequest.Open (“BORNE”,” /mscrmservices/2007/CrmService.asmx ", falsos);
xmlHttpRequest.setRequestHeader (“SOAPAction”, “http://schemas.microsoft.com/crm/2007/WebServices/Execute ");
xmlHttpRequest.setRequestHeader (“Índice-Tipo”, “texto/xml; charset=utf-8”);
xmlHttpRequest.setRequestHeader (“Índice-Comprimento”, xml.length);
xmlHttpRequest.send (xml);
resultXml do var = xmlHttpRequest.responseXML;
var userId = resultXml.selectSingleNode (“//UserId”) .text;
xml = "" do var +
"" +
"" +
GenerateAuthenticationHeader () + " “+
“ “+
“ systemuser” +
“ “+ userId + "" +
“ “+
“ “+
“ firstname” +
“ “+
“ “+
“ “+
“ “+
"" +
"";
o ActiveXObject o mais xmlHttpRequest = novo do var (“Msxml2.XMLHTTP”);
xmlHttpRequest.Open (“BORNE”,” /mscrmservices/2007/CrmService.asmx ", falsos);
xmlHttpRequest.setRequestHeader (“SOAPAction”, “http://schemas.microsoft.com/crm/2007/WebServices/Retrieve ");
xmlHttpRequest.setRequestHeader (“Índice-Tipo”, “texto/xml; charset=utf-8”);
xmlHttpRequest.setRequestHeader (“Índice-Comprimento”, xml.length);
xmlHttpRequest.send (xml);
resultXml do var = xmlHttpRequest.responseXML;
crmForm.all.new_currentuser.DataValue = resultXml.selectSingleNode (“//q1: firstname”) .text;
|