D365: 导入数据通过Azure data factory与Recurring integration
1,在D365中创建导入项目和设置Recurring intergration job
2, 在Azure data factory中创建dataset,dataset来源于blob storage
3,在Azure data factory创建pipeline
3.1 增加Lookup来检索dataset数据
3.2, 增加Activity(Web)来认证获取访问令牌
URL:https://login.microsoftonline.com/<tenantId>/oauth2/v2.0/token/
Body:grant_type=client_credentials&client_id=******&client_secret= ******&resource=https://<D365URL>/.default
4, 增加Activity(ForEach),开始遍历Lookup的输出记录,调用D365 Recurring integartion(Import api)
Items: @activity('LookupCustGroup').output.value
URL: https://<base URL>/api/connector/enqueue/<activity ID>?entity=<entity name>
Headers:
Name: Authorization
Value: Bearer @{activity('D365RI').output.access_token}
Body: @item().Prop_0
6, 配置完成后,点击调试,查看执行结果
7, 执行成功后,检查D365数据是否写入
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· DeepSeek 开源周回顾「GitHub 热点速览」
· 物流快递公司核心技术能力-地址解析分单基础技术分享
· .NET 10首个预览版发布:重大改进与新特性概览!
· AI与.NET技术实操系列(二):开始使用ML.NET
· 单线程的Redis速度为什么快?