Hello,
I'm trying to call API services from AL on Business Cenrtral, when I deploy on OnPremise Docker container works correctely, but when I deploy to SaaS I get the error "Could not create SSL/TLS secure channel". The code is:
var
Client: HttpClient;
Request: HttpRequestMessage;
Content: HttpContent;
Response: HttpResponseMessage;
RequestHeaders: HttpHeaders;
ContentString: Text;
ResponseString: Text;
begin
Clear(Client);
Request.SetRequestUri('https:');
Request.Method := 'GET';
Request.GetHeaders(RequestHeaders);
RequestHeaders.Clear();
RequestHeaders.Add('Authorization', '');
Client.Send(Request, Response);
Response.Content.ReadAs(ResponseString);
Message(Format(Response.HttpStatusCode));
Message(ResponseString);
end;
The message error:
Thanks