Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Microsoft Exam MB-820 Topic 1 Question 4 Discussion

Actual exam question for Microsoft's MB-820 exam
Question #: 4
Topic #: 1
[All MB-820 Questions]

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?

Show Suggested Answer Hide Answer
Suggested Answer: E

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.


Contribute your Thoughts:

Georgene
10 months ago
HttpContent data type variable could be a simple solution for sending and receiving HTTP content. It's worth considering.
upvoted 0 times
...
Wynell
10 months ago
I prefer using HttpClient data type variable. It's more modern and versatile for making HTTP requests.
upvoted 0 times
...
Enola
10 months ago
I disagree. Codeunit S459 'JSON Management' could also be a good option because it helps with handling JSON data.
upvoted 0 times
...
Cecilia
10 months ago
I think we should use Codeunit 1299 'Web Request Helper'. It's specifically designed for making HTTP requests.
upvoted 0 times
...
Ailene
11 months ago
You guys are really overthinking this. It's obviously C - Codeunit S459 'JSON Management'. I mean, if we're connecting to an external REST service, we're probably going to be dealing with JSON data, right? This codeunit is made for that.
upvoted 0 times
...
Mira
11 months ago
Nah, I don't think B is the right answer. Didn't we learn in class that the Web Request Helper is more for handling SOAP requests? I'm leaning towards D - Codeunit 1297 'Http Web Request Mgt'. Sounds like it's specifically designed for this kind of HTTP GET scenario.
upvoted 0 times
Arlette
10 months ago
Great choice! Codeunit 1297 'Http Web Request Mgt' should work perfectly for connecting to the external REST service.
upvoted 0 times
...
Edelmira
10 months ago
I'm convinced. Let's go with D - Codeunit 1297 for creating the HTTP GET request.
upvoted 0 times
...
Willard
10 months ago
Yeah, you're right. Codeunit 1297 'Http Web Request Mgt' seems to be the most appropriate solution for this scenario.
upvoted 0 times
...
Novella
10 months ago
I don't think HttpClient is the right choice. D seems more specific to handling HTTP GET requests.
upvoted 0 times
...
Wenona
10 months ago
I'm not sure about D. Maybe E could also work. HttpClient variable might be a good choice for this.
upvoted 0 times
...
Celeste
10 months ago
I agree. Codeunit 1297 'Http Web Request Mgt' sounds like the best solution for connecting to an external REST service.
upvoted 0 times
...
Mira
10 months ago
I think D is the right answer. Codeunit 1297 seems to be the most suitable for creating an HTTP GET request.
upvoted 0 times
...
...
Yoko
11 months ago
I'm not so sure about that. What about B - Codeunit 1299 'Web Request Helper'? I feel like that might be a more straightforward way to handle this kind of HTTP request.
upvoted 0 times
...
Salina
11 months ago
Hmm, this is a tricky one. I'd say the answer is probably E - HttpClient data type variable. That's the built-in data type in Business Central for making HTTP requests, right?
upvoted 0 times
...

Save Cancel