RE: Call Dynamics 365 for Sales Web API sample
Hi,
This is an indication for the authentication part:
var
vRequestMsg: HttpRequestMessage;
vHeader: HttpvHeaders;
vAuthTxt: Text;
vTempBlob: Record TempBlob;
........
BEGIN
vRequestMsg.Method('POST');
vRequestMsg.GetvHeaders(vHeader);
vHeader.Add('Method', 'POST');
vAuthTxt := StrSubstNo('%1:%2', GlobalWebServiceUsername, GlobalWebServicePassword);
vTempBlob.WriteAsText(vAuthTxt, TextEncoding::Windows);
vHeader.Add('Authorization', StrSubstNo('BASIC %1', vTempBlob.ToBase64String()));
.
I hope this helps you and answers your question.
Please verify my answer if you find it helpful.