How to use Power Automate to extract data from Microsoft Dynamics 365 Finance and Operations via Data management package REST API
In Microsoft Dynamics 365 Finance and Operations there are two APIs strategies that support file-based integration scenarios:
- Data management framework's package API
- Recurring integrations API
Both APIs support data import and data export scenarios, and both use batches. Batch data APIs are considered asynchronous integration patterns because when these APIs are called, data is imported or exported in batch mode. However, calls to these APIs are synchronous. For example, a call to the ExportToPackage API schedules a job to import only a specific data package. The scheduling job is quickly returned (synchronously), and the work is done later in a batch (asynchronously). Therefore, batch data APIs are categorized as asynchronous.
In this article, we will review how to leverage Power Automate and the Data Management package REST API to extract data from Dynamics 365 Finance. We will use the example of extracting “Customer groups” in Dynamics 365 Finance. However, any data entity that is exposed can be leveraged to export data from the system. Here are high level steps:
- The flow is triggered manually from Power Automate. However, it can be automated as well based on certain events that can be used with Power Automate.
- The request is submitted from Power Automate to Dynamics 365 Finance to extract the ‘Customer Group’ data. The entity is configurable and other entities can be used as well.
- A data project execution job is scheduled and run in Dynamics 365 Finance.
- Wait for the data project execution for a specific duration to see if the data project execution is completed successfully.
- Retrieve the package URL from the data project execution.
- Leverage Data Package URL to extract the file and store it on One Drive for Business (or another supported data storage service).
- From here the information can be retrieved and reviewed or shared with other systems.
If Power Automate steps are named appropriately, it can be sufficient to explain all the steps, screenshot below provide details:
Power Automate – Important steps in this flow
posted on 2021-06-02 23:01 lingdanglfw 阅读(97) 评论(0) 编辑 收藏 举报
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· Linux系列:如何用 C#调用 C方法造成内存泄露
· AI与.NET技术实操系列(二):开始使用ML.NET
· 记一次.NET内存居高不下排查解决与启示
· 探究高空视频全景AR技术的实现原理
· 理解Rust引用及其生命周期标识(上)
· DeepSeek 开源周回顾「GitHub 热点速览」
· 物流快递公司核心技术能力-地址解析分单基础技术分享
· .NET 10首个预览版发布:重大改进与新特性概览!
· AI与.NET技术实操系列(二):开始使用ML.NET
· 单线程的Redis速度为什么快?