8
Hi team,

I searched and couldn't find something specific around logging outbound HTTP calls.
Is this supported and how would you go about doing that? I know in NAV there was a flag that we used to set which was creating a file on the server side with the call.
What is the best process of doing that in AL, is there an example somewhere that we can re-use?
If there isn't one, this is a suggestion to add an example, otherwise I'd appreciate some guidance on this.
Proposed solution:
The way I've done it was to stream to a text file the contents of the HTTPRequestMessage, but I'd be nice to see more details like headers, etc, stuff that you could normally see on a server through Fiddler, or by enabling the log flag in NAV standard.
That I guess could be implemented with setting a flag and instead of a HTTP request sent, it should automatically download a file, similar to what I've done but with more details.

Kind Regards,
Robert

I logged this here as well https://github.com/microsoft/AL/issues/5334
Category: Development
STATUS DETAILS
Completed
Ideas Administrator

Thank you for this suggestion! We will log outgoing HTTP calls to Azure Application Insights starting in version 17.0

Best regards,
Business Central Team

Comments

R

We will log outgoing HTTP calls to Azure Application Insights starting in version 17.0

Best regards,
Business Central Team

Category: Development