Consuming web services and APIs from AL

The AL HttpClient object provides a base class for handling HTTP requests and responses from web resources (identified by a URI). With the HttpClient class, you can send GET, DELETE, POST, and PUT HTTP request messages (HttpRequestMessage with HttpHeaders and HttpContent) and receive an HttpResponseMessage object as a result of this request (including the status code and the response data).

As an example, in the following code, we create an extension that permits you to pull customers' address ...

Get Mastering Microsoft Dynamics 365 Business Central now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.