community postIntegration & APIscommunity - not Microsoftreviewed - checked by Opus

Dynamics 365 Business Central Blog Series: REST API web services (APIs)

This blog series covers REST API web services in Dynamics 365 Business Central, including standard and automation APIs, OAuth authentication, custom API development, error handling, and integration with Microsoft 365 services like SharePoint and OneDrive.

post Dynamics 365 Lab

Yun Zhu · 2025-05-02 · 1,907 words · about 9 min

"Web Service Access Keys (Basic Auth) for Business Central Online has been removed"

Key points

  • Business Central supports multiple API types: standard APIs, automation APIs, and custom APIs built with query or codeunit objects
  • OAuth 2.0 authentication is required for API access as Basic Auth was removed for Business Central Online
  • APIs can be extended, filtered, and used with bound/unbound actions for data manipulation and system integration
  • Business Central APIs integrate with Microsoft 365 services including Graph API for SharePoint, OneDrive, and email logging
  • Database access intent controls write permissions and database access modes when calling APIs from client applications

Quotes

  • “Web Service Access Keys (Basic Auth) for Business Central Online has been removed” (OAuth 2.0 is now the mandatory authentication method for API access, requiring developers to update integration patterns)
  • “Business Central supports three types of web services: (REST) API, SOAP, and OData” (Understanding the different web service types helps developers choose the right approach for their integration needs)

AL objects mentioned

As named in the post. A name that matches one object page by exact type and name links to it; the others stay as named.

  • codeunit “501”

Not found in BC28-30: codeunit “501”.

Context

  • Features: Standard APIs (Get, Post, Patch, Delete), Automation APIs, Custom API development, OAuth 2.0 authentication, API filtering and query parameters, Bound and unbound actions, Graph API integration, Database Access Intent management
  • Versions: Business Central 2022 wave 1 (BC20), Release wave 1 2021

Source: Dynamics 365 Lab - Yun Zhu, community blog. Summary, key points and quotes are derived (CONTENT-NOTICE.md); read the original for the full text.