Content
- Before Connecting Dynamics 365 F&O in Peliqan
- Add a connection in Peliqan to Microsoft Dynamics 365 F&O
- Entity explorer
- Bulk export
- Need further help
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.- Login to Azure Portal Account and click on App Registrations (or search for App Registrations):
- Click on New Registration to register a single tenant application:
- Provide details and click on Register:
- On Overview, make sure to copy ClientId and TenantId:
- To enable OAuth, click on Authentication > Add Platform > Click on Web:
- A configure Web window will open, add following Redirect URL: https://oauth.peliqan.io To save click the button “Configure” at the bottom:
- Add Permissions: select API Permissions > Add a permission > Dynamics ERP
- Add Delegated permissions and Applications permissions as below:
- Grant Admin consent to the App:
- 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:
Associate App User with Dynamics environment
You have to associate the App we created with the Dynamics F&O Instance.- Login to Admin Power Platform https://admin.powerplatform.microsoft.com/environments to see all Environments.
- Select the environment in which the F&O instance has been created.
- Make sure to copy Environment URL as it will be used to connect to the environment in Peliqan.
- On the right pane under Access, click on S2S apps (Server to Server apps) to see all Application Users.
- 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
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:- 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’
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.Click to expand script
Click to expand script
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.Click to expand script
Click to expand script
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).
