XMLhttp.open('POST',WSUrl,0); XMLhttp.setRequestHeader('Content-type','text/xml; charset=utf-8'); XMLhttp.setRequestHeader('SOAPAction','UpdateRel'); XMLhttp.send( '<?xml version="1.0" encoding="UTF-8"?>' + '<soap:Envelope xmlns:nav="urn:microsoft-dynamics-schemas/codeunit/DMSManagementWS"' + ' xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">' + '<soap:Body>' + '<nav:UpdateRelationIndexes>' + '<nav:pYear>' + FORMAT(Year) + '</nav:pYear>' + '<nav:pMonth>' + FORMAT(Month) + '</nav:pMonth>' + '</nav:UpdateRelationIndexes>' + '</soap:Body>' + '</soap:Envelope>'); XMLDoc.load(XMLhttp.responseXML); IF XMLhttp.status <> 200 THEN ERROR(WSError + FORMAT(XMLhttp.statusText));
Answers
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n