This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
A developer must send a PATCH request with a JSON body and request-specific headers. Which AL design provides the required control?
Configure an HttpRequestMessage and send it with HttpClient.Send.
Call HttpClient.Get and add the JSON body to the response content.
Store the method and headers in a JsonObject and call JsonObject.WriteTo.
HttpClient.Send returns true, but HttpResponseMessage.IsSuccessStatusCode returns false. What does this result mean?
The platform completed the exchange, and the service returned an unsuccessful HTTP status.
The platform blocked the outbound request before it reached the service.
The response contains malformed JSON but has a successful HTTP status.
An external service rejects an AL POST request with status 415. The request body contains valid JSON. Which change is most likely required?
Set the HttpContent Content-Type header to application/json.
Add Content-Type to HttpClient.DefaultRequestHeaders.
Parse the request body with HttpResponseMessage before sending it.
A successful response is valid JSON but omits the required externalOrderId property. How should the integration handle the response?
Treat the response as a contract failure and retain the status and response body for diagnosis.
Use an empty value for externalOrderId and report the operation as successful.
Retry the same response until the missing property appears.
You must answer all questions before checking your work.
Was this page helpful?
Need help with this topic?
Want to try using Ask Learn to clarify or guide you through this topic?