topic hubAL Developmentofficial - Microsoftderived - from the source, no model text

Calling external services

Learn section Development > Programming in the AL language > Calling external services: 8 Microsoft Learn pages. Index of what Learn documents here, linked to Learn.

Path: Development > Programming in the AL language > Calling external services · tier official · system development · no narrative yet

Learn pages

  • Azure Function Integration Telemetry: Analyze Azure Function integration telemetry in Business Central to monitor successful requests, failed requests, and OAuth authorization failures.
    • Azure Function integration telemetry tracks calls from Business Central to Azure Functions.
    • Request succeeded event has eventId AL0000I74 with HTTP status code.
    • Request failed event has eventId AL0000I7P and includes status code and function host URL.
    • Authorization failed event has eventId AL0000I75 with error text explaining failure reason.
    • Common dimensions include function host URL, tenant ID, environment name, and company name.
    • Sample KQL queries help analyze and alert on Azure Function integration failures.
  • Call external services with the HttpClient data type: Learn about how to call external services using the HttpClient datatype.
  • HttpClient data type: Provides a data type for sending HTTP requests and receiving HTTP responses from a resource identified by a URI.
  • HttpClientHandler attribute: Specifies that the method is an HttpClientHandler method, which catches and handles HTTP requests in test executions.
  • Mock outbound HttpClient web service calls during testing: Learn about how to test HttpClient web calls to external services without invoking the live/actual/remote service.
  • Outgoing Web Service Request Trace: Learn about the outgoing web service request telemetry in Business Central
    • Outgoing web service telemetry (RT0019) tracks HTTPClient calls made by AL code to external services, including endpoint, method, status code.
    • Dimensions record timeout set by NavHttpClientMaxTimeout server setting or TimeOut method call, with method call taking precedence over server setting.
    • Limit: httpReturnCode dimension deprecated in version 17.2; use httpStatusCode instead for http status codes returned from requests.
    • httpRequestError dimension (added version 29.0) distinguishes failure types: name resolution, connection failures, certificate validation, timeout.
    • Event includes extension ID, name, publisher, version; object ID, name, type making request; server execution time and total time for request completion.
    • Stack trace dimension (added version 20.1) and client type (added version 21.3) help trace external service calls to AL code locations.
    • HTTP headers captured in telemetry; sample KQL extracts Authorization header from parsed httpHeaders JSON to analyze authentication methods used.
  • Supported cipher suites: Lists the cipher suites that are supported for external APIs called from Business Central.
  • Troubleshooting web service errors (OData, API, and SOAP): Learn about how to troubleshoot Business Central web service errors (OData, API, and SOAP).

Key facts from Microsoft Learn (CC BY 4.0), in our own words (D106); open the page for the full text.

Videos, posts and code changes

Linked by a Haiku matcher with a grounding quote from the item’s summary (link/topics.ts); machine-generated.

Source: Microsoft Learn (CC BY 4.0). Descriptions are Learn’s own.

What Learn documents here 8 Learn pages