
How to OAuth Authenticate Web service URL in Al Language In Business Central.& How to insert data in Business Central Table from Authenticated URL.
error :
System.InvalidOperationException: Misused header name. Make sure request headers are used with HttpRequestMessage, response headers with HttpResponseMessage, and content headers with HttpContent objects. at System.Net.Http.Headers.HttpHeaders.CheckHeaderName(String name) at System.Net.Http.Headers.HttpHeaders.Add(String name, String value) at Microsoft.Dynamics.Nav.Runtime.TrappableHttpOperationExecutor.<>c__DisplayClass0_0.<Execute>b__0() in s:\repo\src\Platform\Server\Prod.Ncl\Runtime\TrappableHttpOperationExecutor.cs:line 31 at Microsoft.Dynamics.Nav.Runtime.TrappableOperationExecutor.Execute(DataError errorLevel, Func`1 operation, Action`2 processNativeException) in s:\repo\src\Platform\Server\Prod.Ncl\Runtime\TrappableOperationExecutor.cs:line 34
Hi Sejal,
Kindly follow the below mentioned steps