web
You’re offline. This is a read only version of the page.
close
Skip to main content
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.

I have the same question (0)
  • steveendow Profile Picture
    2,281 on at
    RE: Is there any way to know which url an external api is hitting in business central.

    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
    RE: Is there any way to know which url an external api is hitting in business central.

    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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

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

#1
Sumit Singh Profile Picture

Sumit Singh 2,085

#2
YUN ZHU Profile Picture

YUN ZHU 1,810 Super User 2025 Season 2

#3
Rishabh Kanaskar Profile Picture

Rishabh Kanaskar 1,788

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans