# Microsoft Dynamics 365

### Supported Destination Services

DinMo supports the following destination service:

* [Synchronise data objects](/integrations/destination-platforms/microsoft-dynamics-365/synchronise-data-objects.md) - sync any dataset

### Authentication to Microsoft Dynamics 365

Regardless of the selected destination service, DinMo will always connect to MD365 using OAuth2 authentication. Please make sure the user who connects MD365 on DinMo has the right permissions on the target ad accounts.

You must enter the following credentials to login to MD365 from DinMo:

* Web API endpoint
* Tenant ID
* Client ID
* Client Secret

#### Setting up App Registration

To find this information, you must go through the following steps:

1. Go to the 'Azure Active Directory' portal, then 'App Registrations'
2. Create a single tenant app registration
   1. From 'Overview', copy across the **Client ID** and **Tenant ID** generated here
3. Within the App, go to 'Certificates & secrets', then click **New Client Secret**
   1. Copy this Client Secret into DinMo
4. Now you must grant the correct permissions to be able to use the app. Go to 'API Permissions', and click 'Add Permissions', where you can select 'Dynamics CRM' and enable *user\_impersonation* permission

#### Web API Endpoint

To complete your MD365 connection setup, you will need to provide your service URL (Web API Endpoint). To do this:

1. Sign in to [Microsoft Power Apps](https://powerapps.microsoft.com/).
2. Go to settings (top right corner) to open the settings sidebar. Then select 'Developer resources'.
3. Copy the Web API Endpoint from the sidebar


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.dinmo.io/integrations/destination-platforms/microsoft-dynamics-365.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
