Microsoft Dynamics Business Central supports multiple types of APIs, with REST being the primary and recommended option. Here are the key points:
Yes, the official Microsoft Dynamics Business Central API does support webhooks. Here are the key points about webhooks in Business Central:
You can subscribe to webhook events for the following types of entities:
In summary, webhooks provide a powerful way to get real-time notifications of data changes in Business Central, enabling integrations with external systems. The API supports subscribing to both standard and custom entities.
Here are the key API rate limits for the Microsoft Dynamics Business Central API:
These limits are applied to all types of users, including application users (service principals).
Exceeding these limits will result in HTTP status codes like 429 (Too Many Requests) or 503 (Service Temporarily Unavailable).
To optimize throughput, it's recommended to use API or OData instead of SOAP, as they execute faster.
If your integration is using a single user or service principal for many operations, consider distributing the workload across multiple users or service principals to avoid hitting per-user limits.
Implement retry logic with cool-off periods to handle rate limiting.
For large-scale integrations, distribute requests across multiple users or service principals.
Use OData batch requests to combine multiple operations and reduce the number of API calls.
Monitor your API usage and implement strategies to stay within the limits.
Consider using asynchronous operations for long-running tasks to avoid timeouts.
By understanding and working within these limits, you can ensure smooth integration with Dynamics 365 Business Central while avoiding performance issues or service disruptions.
Based on the search results provided, here is the answer to your question about the most recent version of the Microsoft Dynamics Business Central API:
The most recent version of the Microsoft Dynamics Business Central API is v2.0 [1].
Key points to consider:
The API v2.0 is the current version for Business Central [1].
Microsoft recommends using the highest API version available when using the built-in APIs [3].
There was a transition from API v1.0 to API v2.0. For information about this transition, you can refer to the "Transition from API v1.0 to API v2.0" documentation [1].
The Business Central API stack is optimized for performance and is the preferred way to integrate with Business Central [3].
Developers can create custom APIs using AL object types like API pages and API queries [3].
Best practices:
Always use the latest version of the API for the most up-to-date features and improvements.
Familiarize yourself with the Microsoft APIs Terms of Use before starting to use the Business Central APIs [1].
When developing connect apps or integrations, use standard REST API to interchange data [1].
For inspiration and examples, check the open-source ALAppExtensions repository, which contains examples of API pages written in AL [1].
If you need to extend APIs with additional fields, you must create a custom API based on the existing AL code, as extending APIs directly is not currently possible in Business Central [1].
To get a developer account for Microsoft Dynamics Business Central and create an API integration, you need to follow these steps:
Sign up for a free Dynamics 365 Business Central trial tenant.
This will give you access to a Business Central environment where you can explore the APIs and develop your integration.
For production use, you should use Microsoft Entra ID (formerly Azure AD) authentication. To set this up:
For initial development and testing, you can use basic authentication, but this is deprecated for production use.
In Business Central, search for "API Setup" and enable the APIs.
For on-premises installations, you may need to enable OData and API services using PowerShell commands.
The endpoint URL will depend on your environment:
https://api.businesscentral.dynamics.com/v2.0/<environment name>/api/v2.0
https://<base URL>:<port>/<serverInstance>/api/v2.0/
You can now explore the available APIs using the OpenAPI specification.
Develop your integration using any language capable of calling REST APIs.
Here's the markdown text with the trailing list of URLs and citation references removed, and any URLs inside the content formatted correctly for the markdown file format:
Here's a list of data models you can interact with using the Microsoft Dynamics Business Central API, along with what is possible for each:
General Ledger Entries
Accounts Receivable
Accounts Payable
Cash Management
Customers
Sales Orders
Sales Quotes
Vendors
Purchase Orders
Items
Warehouses
Projects
Time Sheets
Production Orders
Capacity Planning
Service Items
Service Orders
Dimensions
Attachments
For each of these data models, the API generally allows for creating, reading, updating, and deleting records (CRUD operations), as well as performing specific actions related to the business processes they represent. The exact capabilities may vary depending on the specific API endpoint and the user's permissions within the system.
It's important to note that the Business Central API is designed to be RESTful, following OData v4 standards, which allows for efficient querying, filtering, and data manipulation. Additionally, the API supports integration with other Microsoft services and third-party applications, enabling developers to create comprehensive solutions that leverage Business Central's functionality.