Events
Power BI DataViz World Championships
Feb 14, 4 PM - Mar 31, 4 PM
With 4 chances to enter, you could win a conference package and make it to the LIVE Grand Finale in Las Vegas
Learn moreThis browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
APPLIES TO: Business Central on-premises
Business Central exposes an API that makes it possible to integrate with other services. To enable integration with these APIs, you must go through a few steps to enable the access for Business Central.
Open the Business Central Administration Shell.
For more information, see Run Business Central Administration Shell.
Run the Set-NAVServerConfiguration cmdlet to enable OData services.
Set-NAVServerConfiguration <BC server instance name> -KeyName ODataServicesEnabled -KeyValue true
Run the Set-NAVServerConfiguration cmdlet to enable API Services.
Set-NAVServerConfiguration <BC server instance name> -KeyName ApiServicesEnabled -KeyValue true
Check that the values for the PublicODataBaseUrl
and ODataServicesPort
parameters are correct.
When exposing a web service, you must open the port for other consumers of your web service to access it. You can have your system administrator add the port through Windows Firewall on the computer running Business Central server. The default port for OData web services is 7048.
You can verify these settings by running the Get-NAVServerConfiguration:
Get-NAVServerConfiguration <BC server instance name>
In Business Central, search for API Setup and then choose the related link.
On the API Setup page, choose the Integrate APIs button.
This starts a process of populating all the integration tables with records for all APIs. The process can take several minutes.
Depending on where you want to access the APIs from, you must specify the correct endpoint. For more information, see Endpoints for APIs.
Note
For on-premises environments where SOAP, OData, or APIs have been turned off, any call to such an endpoint will also return a HTTP status code 405 (so check your server configurations if you see those).
Developing connect apps for Dynamics 365 Business Central
Microsoft web services overview
OpenAPI specification
Events
Power BI DataViz World Championships
Feb 14, 4 PM - Mar 31, 4 PM
With 4 chances to enter, you could win a conference package and make it to the LIVE Grand Finale in Las Vegas
Learn moreTraining
Module
Work with the API in Dynamics 365 Business Central - Training
Learn how to work with the API in Dynamics Business Central.
Certification
Microsoft Certified: Dynamics 365 Business Central Developer Associate - Certifications
Demonstrate you have the skills to design, develop, test, and maintain solutions based on Dynamics 365 Business Central.