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.
- 8Learn pages
- 2videos
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.
- #10755 Migrate Http Web Request Mgt. callers to native HttpClient (code change): “Six callers, including currency exchange rate updates, external accountant invitations, JSON structure retrieval, OData metadata download”
- #11612 Multiple runs of email retrieval on the same emails don’t persist again (code change): “Email retrieval no longer creates duplicate entries when the same emails are retrieved”
- #11993 Enable HTTP requests before Expense Agent setup (code change): “The setup wizard enables HTTP client requests for the Expense Agent extension”
- #12140 [Email - SMTP Connector] Fix OAuth Base64URL token parsing (code change): “OAuth2 SMTP authentication now correctly decodes Base64URL tokens”
- #12557 Implement first-party app authentication for Microsoft Fabric Export (code change): “first-party app authentication to the Microsoft Fabric Mirroring export”
- #12755 Flow Service Management: use native HttpClient instead of Web Request Helper (code change): “Flow Service Management.GetEnvironments now calls the endpoint through native AL HttpClient”
- #5833 Add Microsoft Graph API Support to SharePoint Connector (code change): “SharePoint Connector now supports Microsoft Graph API as an alternative to REST API”
- #8499 Adding
IsVerifiedDomainto theAzureADTenantmodule (code change): “checks whether a domain is among the tenant’s verified domains” - #9744 [Email - Outlook REST API] Skip attachments without contentBytes in RetrieveEmails (code change): “Attachments without contentBytes (item and reference attachments) are now skipped”
- #9748 Image Analyzer: use Computer Vision v3.2 instead of retiring v1.0 (code change): “The Image Analyzer app switches from the retiring Computer Vision v1.0 to v3.2 API”
- Advanced JSON Management for Business Central Developers (community post): “JSON Management provides a comprehensive toolset for reading, writing, and converting JSON”
- How to Use External APIs in Business Central (community post): “explains how to consume external APIs from within Business Central by making HTTP requests”
- Native SFTP Support in Business Central 28 (community post): “native SFTP Client codeunit for listing, uploading, downloading and deleting files”
- Dynamics 365 Business Central: new strict URI validation in AL Http Client (community post): “stricter URI validation in AL HttpClient to prevent Server-Side Request Forgery attacks”
- Dynamics 365 Business Central: using SFTP from AL (the native way) (community post): “Business Central 2026 Wave 1 introduced a native SFTP Client codeunit for connecting to SFTP servers from AL code”
- Why your Business Central job queue needs idempotent external effects when integrating external systems. (community post): “Job queue entries that call external APIs risk duplicating actions”
- OAuth library for the Rest Client (community post): “flexible OAuth authentication without .NET dependencies or complex function overloading”
- How I Recreated the Extension Upload Experience in Business Central (community post): “custom app recreates the deprecated in-product extension upload functionality”
- Dynamics 365 Business Central: Generate barcode through external services/APIs (Telepen, Swiss QR Code, QR codes with colors, images or text……) (community post): “external APIs like QuickChart can generate QR codes and other barcode types”
- Dynamics 365 Business Central Blog Series: Integrate Business Central with SharePoint (community post): “Files can be uploaded to and imported from SharePoint document libraries using AL code with Graph API”
- Dynamics 365 Business Central: Integrate with Microsoft Dataverse via APIs (Not using the standard Dataverse connector) (community post): “Use OAuth 2.0 with Client Credentials grant type to authenticate with Dataverse APIs before performing any operations.”
- Dynamics 365 Business Central: How to set Allow HttpClient Requests for multiple extensions (selected extensions) at the same time (community post): “Allow HttpClient Requests must be enabled per extension to allow outbound HTTP calls from AL code”
- Dynamics 365 Business Central: How to quickly check if a Url is secure (Use https) via AL (community post): “Use codeunit 1299 Web Request Helper and its IsSecureHttpUrl procedure to validate URL security.”
- FTP, FTPS, SFTP, What’s the difference, and what about AL and Business Central (video): “SFTP client in Business Central; SFTP code unit methods”
- What’s Cooking in Business Central: Cookies and Collectible Errors in the REST Client (video): “Cookie Support in REST Client; Get Cookie Names Function; Collectible Errors in REST Client”
Source: Microsoft Learn (CC BY 4.0). Descriptions are Learn’s own.
What Learn documents here 8 Learn pages
- learnAzure Function Integration Telemetry2026-11-17
- learnCall external services with the HttpClient data type2026-03-04
- learnHttpClient data type2026-10-01
- learnHttpClientHandler attribute2026-10-01
- learnMock outbound HttpClient web service calls during testing2025-03-17
- learnOutgoing Web Service Request Trace2026-09-22
- learnSupported cipher suites2021-05-19
- learnTroubleshooting web service errors (OData, API, and SOAP)2024-01-10