如何使用Azure数据工厂将Business Central数据提取并放入Azure SQL数据库?

huangapple go评论75阅读模式
英文:

How to use Azure Data Factory to take Business Central data and put into Azure SQL DB?

问题

我正在尝试使用Azure数据工厂(ADF)从Business Central(BC)获取数据并将其发送到Azure SQL DB。

  • 在BC门户内,您可以在顶部搜索“Web Services”,然后您将获得一个Web服务/ API URL列表,可以查询以检索您的数据。
  • 在Web服务列表中,我一直使用Chart of Accounts端点作为示例。请参见下面的截图:

Web Services(截图1)

Web Services(截图2)

我以前没有创建过Active Directory应用程序,所以不确定我是否以最佳方式进行操作。

简而言之,我只需要将BC数据放入我的数据库中...有没有更好的方法?

英文:

I am trying to use Azure Data Factory (ADF) to take data from Business Central (BC) and send it to the Azure SQL DB.

  • Within the BC portal, you can search for 'Web Services' at the top and you will be provided with a list of web services/ API URL's you can query to retrieve your data
  • In the list of web services, I have been using the Chart of Accounts endpoint as an example. See screenshots below:

Web Services (screenshot 1)

Web Services (screenshot 2)

I have not created an Active Directory App before, so am unsure if I am doing this in the best way.

Simply put, I just need the BC data in my DB... Can I do this a better way?

答案1

得分: 0

认证

您需要使用OAuth2认证来访问Business Central的API/Web服务。

为此,您需要一个Azure应用注册,并且这个应用注册还需要在Business Central中创建,以便分配正确的权限。

查看官方指南 设置Azure Active Directory (Azure AD) 基于身份验证 获取更多信息。

API和Web服务

我还建议您使用API而不是OData Web服务,因为API不太容易变化,如果/当进行更改时,会使用版本控制来确保现有的集成不会失败。

您可以在官方 API参考文档 中找到可用的API和它们的端点。

英文:

Authentication

You need to use OAuth2 authentication to access the Business Central APIs/Web Services.

For this you need an Azure App Registration and this App Registration needs to be created inside Business Central as well to be able to assign the correct permissions.

Check the official guide on Setting up Azure Active Directory (Azure AD) based authentication for more information.

APIs og Web Services

I would also recommend that you use the APIs instead of the OData Web Services as the APIs are less subject to change and if/when changes are made versioning is used to ensure that existing integrations won't fail.

You can find the available APIs and their endpoints in the official API Reference.

huangapple
  • 本文由 发表于 2023年6月6日 11:47:34
  • 转载请务必保留本文链接:https://go.coder-hub.com/76411322.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定