• 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:

    1. Data management framework's package API
    2. 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:

    1. 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.
    2. 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.
    3. A data project execution job is scheduled and run in Dynamics 365 Finance.
    4. Wait for the data project execution for a specific duration to see if the data project execution is completed successfully.
    5. Retrieve the package URL from the data project execution.
    6. Leverage Data Package URL to extract the file and store it on One Drive for Business (or another supported data storage service).
    7. 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

  • 相关阅读:
    淘宝如何做智能化UI测试?
    摸爬滚打16年的软件测试经验,建议收藏!
    QA如何高效参与技术设计评审
    官宣!新冠疫苗全民免费接种,全部费用政府出!
    2021年第一次,送Python好书
    【Python】自动化抢购茅台,真香。
    3年以上测试工程师,你的出路在哪里?
    性能测试的目的与类型
    Burpsuite的简单应用-y-Proxy
    用Burpsuite破解网站密码
  • 原文地址:https://www.cnblogs.com/lingdanglfw/p/14843295.html
Copyright © 2020-2023  润新知