I have recently encountered a problem with PATCH call from C/AL.
I have already tried a solution for AL, but it didn't work, here's my code:
CASE RestMethod OF
String := 'PATCH' //it's a DotNet String variable
HttpRequestMessage.Content(HttpContent); //HttpContent contains JSON object which I sent
HttpRequestMessage.Method(String); //I've tried to use ('PATCH') instead of String, but it requires DotNet variable
HttpResponseMessage := HttpClient.SendAsync(HttpRequestMessage);
When I try to execute that, I am getting the following error:
A call to System.Net.Http.HttpRequestMessage.set_Method failed with this message: The type of one or more arguments does not match the method's parameter type.
Thanks in advance.