ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 42 - MB-820 discussion

Report
Export

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?

A.

HttpContent data type variable

Answers
A.

HttpContent data type variable

B.

Codeunit 1299 'Web Request Helper'

Answers
B.

Codeunit 1299 'Web Request Helper'

C.

Codeunit S459 'JSON Management'

Answers
C.

Codeunit S459 'JSON Management'

D.

Codeunit 1297 'Http Web Request Mgt''

Answers
D.

Codeunit 1297 'Http Web Request Mgt''

E.

HttpClient data type variable

Answers
E.

HttpClient data type variable

Suggested answer: E

Explanation:

To create an HTTP GET request that connects to an external REST service in a Business Central online environment, the solution to use is the HttpClient data type variable (E). The HttpClient data type in AL language is designed for sending HTTP requests and receiving HTTP responses from a resource identified by a URI. This makes it the ideal choice for interfacing with external REST services, as it provides the necessary methods and properties to configure and execute HTTP GET requests, handle the responses, and process the data returned by the REST service. This approach is more direct and flexible compared to using specific codeunits like 'Web Request Helper' (B) or 'Http Web Request Mgt' (D), which might not provide the same level of control or specificity needed for RESTful interactions.

asked 05/10/2024
stefano atzei
33 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first