How it works...
The new variable types in the AL language provide native support for making web requests and processing the resulting data. This allows us to easily connect to external web services in order to pass data to, or get data from, them.
The request to the web service is done by using the HttpClient variable type. The response from that request is returned into a HttpResponseMessage type where it can be parsed in order to determine whether the request was successful or not.
A successful request then allows us to parse the data (in our recipe, this is JSON-formatted data) using a combination of JsonArray, JsonToken, and JsonObject variable types. The combination and logic at this point is dependent on the structure of the data. For ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access