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数据是否写入

 

posted @   adingkui  阅读(211)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· DeepSeek 开源周回顾「GitHub 热点速览」
· 物流快递公司核心技术能力-地址解析分单基础技术分享
· .NET 10首个预览版发布:重大改进与新特性概览!
· AI与.NET技术实操系列(二):开始使用ML.NET
· 单线程的Redis速度为什么快?
点击右上角即可分享
微信分享提示