We are working on ingesting products into D365FO. Our process includes submitting XML to the Recurring Integration, but we also have a component that uses the OData Api. In this case, we are submitting a json entity and when it succeeds it returns a valid json response

But when the post encounters an error, it returns a 400 Bad request error in XML format
An error has occurred.Write failed for table row...

I believe the contentType of the response matches the data being returned, but I would prefer to be consistent. If I submit data in json, and on the happy path, it returns json, but on the error side, I would expect the response to respect the request's content type as well.

Category: General
Needs Votes