web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Unanswered

Is there any way to know which url an external api is hitting in business central.

(0) ShareShare
ReportReport
Posted on by 10

I am trying to maintain an API Log in BC, whenever the external app tries to hit an api page of BC, i want to know some specific details like, on which url the external app hit, the external api method, request body, response code, response body (what response did business central sent back). I want to do all this in AL code. Help would be greatly appreciated.

  • steveendow Profile Picture
    2,281 on at

    Hi,

    I would recommend starting with Business Central Telemetry using Application Insights.  It only takes a few minutes to setup and requires zero AL or customization.  If you still need more information about the API calls, you could then investigate AL options.  

    Note:  Entering the App Insights key in the BC Admin center will reboot the BC tenant, so you'll want to do that after hours or during a maintenance window

    Note on data collected by BC Telemetry: Request Body and Response Body are not logged to Application Insights due to GDPR compliance requirements.

    twitter.com/.../1420409536091938819

    Here is a Docs page listing the data elements available through BC Telemetry with Application Insights:

    docs.microsoft.com/.../telemetry-webservices-trace

    (thanks to AJ for the link  twitter.com/.../1420414035837825043

    Here is an article on the BC Telemetry configuration process:

    https://docs.microsoft.com/en-us/dynamics365/business-central/dev-itpro/administration/telemetry-enable-application-insights

    Let me know if BC Telemetry with Application Insights might work for you.

  • steveendow Profile Picture
    2,281 on at

    Kennie has created a sample Application Insights KQL query for web service calls:

    twitter.com/.../1420454936215699462

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 728 Super User 2026 Season 2

#2
YUN ZHU Profile Picture

YUN ZHU 545 Super User 2026 Season 2

#3
AndrewThomas81 Profile Picture

AndrewThomas81 328 Super User 2026 Season 2

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans