Microsoft Dynamics 365 Business Central Developer — Question 71
A company has a Business Central online environment.
You need to create an HTTP GET request that connects to an external REST service.
Which solution should you use?
Answer options
- A. HttpContent data type variable
- B. Codeunit 1299 "Web Request Helper"
- C. Codeunit 5459 "JSON Management"
- D. Codeunit 1297 "Http Web Request Mgt."
- E. HttpClient data type variable
Correct answer: E
Explanation
The correct answer is E, as the HttpClient data type variable is specifically designed for making HTTP requests, including GET requests to external services. The other options, while useful for different purposes, do not directly facilitate the creation of an HTTP GET request to connect with an external REST service.