API for Business Central on-premise and Business Central on Cloud

Introduction:

This blog is to give an introduction regarding how to integrate the data from Business Central to an API and also gives a comparison of the API integration in Business Central on-premise and Business Central on Cloud. I will demonstrate it with an example for Sales Order Entity.

Pre-requisites:

1. Microsoft Dynamics 365 Business Central (on-premise)
2. Microsoft Dynamics 365 Business Central (Cloud)

Demonstration:

For Business Central on-premise:

1. Add the page whose data has to be integrated to the page API Setup (5469) and click on Integrate APIs.

2. Go to Business Central Administration and to the Server Instance properties and in the OData properties check the “Max Page Size” parameter and set it to the number of records you want to integrate. (Note: Enable API Services and Enable OData Services checkboxes should also be ticked.)

3. Now go to the browser and enter the URL to get the list of 44 standard APIs. (Format of the URL for Business Central on-premise is given as follows:   

“http:<>:<>/<>/api/beta/” or “http:<>:<>/<>/api/V1.0/” OR “http:<>:<>/<>/api/V2.0/”

http://localhost:7648/BC170/api/V2.0/

4. Now you can get to the sales order using the following URL.
“http:<>:<>/<>/api/beta/companies(company id)/salesOrders”.

获取company id    http://localhost:7648/BC170/api/V2.0/companies

For Business Central on Cloud :

1. First add the page whose data has to be integrated is added to the API Setup Page similar as above. Use the following URL “https://api.businesscentral.dynamics.com/v1.0/ domain>/api/beta to access the API for getting the data from the Business Central on Cloud. Enter the username of the user in the Business Central and the Password will be the user’s WebServiceAccessKey.

2. When you click on Sign in, you will get a list of all of the standard 44 APIs.

3. Similar to the Business Central on-premise you can navigate to the SalesOrder. URL Format is as follows:   
https://api.businesscentral.dynamics.com/v1.0/domain>/api/beta/companies(company id)/salesOrders”. It can be seen from the images below that only 1000 records have been integrated from the SalesOrder in Business Central to the API. Here, as there is no administration this number of records integrated cannot be changed and they remain as the standard defined for OData.

Conclusion:

This is the difference in the API integration in Business Central on-premise and Business Central on Cloud. It also shows the number of records that can be integrated in Business Central on-premise and Business Central on Cloud. As we will find the solution as to how to alter the number of records that can be integrated in Business Central on Cloud we will post the blog.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值