Skip to main content
This article provides an overview to get started with the Microsoft Dynamics 365 F&O connector in Peliqan. Please contact support if you have any additional questions or remarks.

Content

Before Connecting Dynamics 365 F&O in Peliqan

Create an App in Azure

In order to connect Dynamics F&O in Peliqan, you have to create an app in Azure Portal. This is a so called “private” app. After entering all the details in Peliqan (client id, client secret, tenant id) etc. Peliqan will start syncing your data.
  1. Login to Azure Portal Account and click on App Registrations (or search for App Registrations):
Azure App Registrations
  1. Click on New Registration to register a single tenant application:
Azure New Registration
  1. Provide details and click on Register:
Azure Register App
  1. On Overview, make sure to copy ClientId and TenantId:
Azure App Overview
  1. To enable OAuth, click on Authentication > Add Platform > Click on Web:
Azure Authentication Platform
  1. A configure Web window will open, add following Redirect URL: https://oauth.peliqan.io To save click the button “Configure” at the bottom:
Azure Redirect URL
  1. Add Permissions: select API Permissions > Add a permission > Dynamics ERP
Azure Dynamics ERP Permissions
  1. Add Delegated permissions and Applications permissions as below:
Azure Delegated Permissions Azure Application Permissions
  1. Grant Admin consent to the App:
Azure Grant Admin Consent Azure Admin Consent Granted
  1. Get Client Secret: In left pane, click Certificates & Secrets > Client Secret > New Client Secret and provide details to get the client secret. Click on the Add button:
NOTE: Client secret is only visible when created, make sure to copy and save it for future use. For the Peliqan Connection, you will need to provide the client secret. Azure New Client Secret Azure Client Secret Value

Associate App User with Dynamics environment

You have to associate the App we created with the Dynamics F&O Instance.
  1. Login to Admin Power Platform https://admin.powerplatform.microsoft.com/environments to see all Environments.
  2. Select the environment in which the F&O instance has been created.
  3. Make sure to copy Environment URL as it will be used to connect to the environment in Peliqan.
Power Platform Environment URL
  1. On the right pane under Access, click on S2S apps (Server to Server apps) to see all Application Users.
Power Platform S2S Apps
  1. Create a New App User by clicking on New App User > Add an app
  • Select the “private” App you have created in Azure
  • Provide Business Unit same as in Environment URL
  • Provide Security Roles as System Administrator.
  • Click on Create
Power Platform New App User

Add a connection in Peliqan to Microsoft Dynamics 365 F&O

In Peliqan, go to “Connections”, click on “Add new” and search for Dynamics F&O: Dynamics F&O connection in Peliqan Configuration options:
  • Client ID: Client ID (App ID) of the Private App from Microsoft Azure Portal
  • Client Secret: Client secret of the Private App
  • Tenant ID: Tenant Id of the Private App
  • Resource URL: Resource URL of the F&O Instance
  • (Optional) select tables to sync under ‘Advanced’
Dynamics F&O connection configuration Click on the button Connect Dynamics 365 Finance and Operations(AX) to initiate the oAuth Flow and Authorize access. Once the connection is added, the data pipeline will automatically be created and data will start syncing to your data warehouse.

Entity explorer

You can use the below data app in Peliqan to browse all your entities in F&O and find their primary keys. This is need to add extra entities to the pipeline for syncing.

Bulk export

For large datasets, you can use a custom pipeline in Peliqan to do scheduled bulk exports, using a DMF (Data Management Framework) Export Project defined in Dynamics F&O. See below script which implements a custom pipeline.
Make sure to create a DMF Export Project in Dynamics F&O first. In Dynamics F&O, go to Data Management > Export and create a new project: Dynamics F&O DMF Export project Add one or more entities for export, choose XML-Element as data format for each entity. Make sure Skip staging is checked for each entity (otherwise export will be 10x slower).
There’s a bug in Dynamics F&O where Skip staging is not checked, even when the toggle is enabled when adding an entity. Double check if the check is there in the list of entities (see screenshot example below).
Example: Dynamics F&O Skip Staging check Note, entities can be added in bulk by using the “Add multiple” menu item. Select for example an Application Module such as “Customers” or “Accounts Payable”, and next select all included entities by clicking the checkbox in the column header. Once all entities are selected, make sure target data format is set to XML-Element and Skip staging = Yes. Click “Add selected”: Dynamics F&O Add Multiple Entities

Need further help

Please contact our support for any further assistance via support@peliqan.io.