# D365 - Dynamics 365

The D365 data source in SCA provides access to contacts stored within your **Microsoft Dynamics 365 environment**. Contacts are queried via the **Dataverse API**, and contacts are managed in your **Dynamics 365 tenant**.

#### App Configuration Parameters

**Defaults (**[**`SecContacts.Defaults`**](/documentation/app-configuration-policy-name-values-for-sca/sca-configuration-seccontacts.defaults.md)**):**

* [**D365\_Enabled**](/documentation/app-configuration-policy-name-values-for-sca/sca-configuration-seccontacts.defaults.md#enable-or-disable-features) → Enables or disables the D365 data source.
* [**D365\_InitValue**](/documentation/app-configuration-policy-name-values-for-sca/sca-configuration-seccontacts.defaults.md#initial-value-set-by-default) → Sets the default position of the user’s switch for this data source (on = shown, off = hidden) when SCA is first launched.

**Service URLs (**[**`SecContacts.ServiceUrls`**](https://docs.secure-contacts.com/documentation/data-sources/pages/bf6qlzjqFL3ODEf6GONt#seccontacts.serviceurls)**):**

* [**SecContacts.ServiceUrls**](https://docs.secure-contacts.com/documentation/data-sources/pages/bf6qlzjqFL3ODEf6GONt#seccontacts.serviceurls) → Set this parameter to add the URL of your Dynamics 365 environment.
* Using `ServiceUrls`, administrators can also configure:
  * 🆕Custom columns from D365 contacts to display in SCA
  * 🆕Custom API filters to retrieve only relevant contacts
  * 🆕Splitting of D365 contacts into multiple separate SCA data sources (e.g., by business unit, department, or region)

**Customization:**

* [**SecContacts.CustomDatasourceNames**](/documentation/app-configuration-policy-name-values-for-sca/sca-configuration-seccontacts.customdatasourcenames.md) → Assign friendly display names for the D365 source.

#### Requirements to Access D365 Contacts

To access Dynamics 365 contacts in SCA, a user must have:

* An **Azure/M365 license assigned for Dynamics 365**
* **Authorized access to Dynamics 365 for contact entities**

#### Requirements for D365 Contacts

Any D365 contact to be shown in SCA **must have the following fields populated**:

1. **First name**
2. **Last name**
3. **Valid phone number**

**Note:** All eligible D365 contacts that meet these requirements will appear in SCA

{% hint style="success" %}

* Each data source, including D365, can be **hidden by the user** if they do not want to see or use it.
* Hiding the D365 data source does **not affect Caller Identification** — contacts from hidden sources will still resolve incoming calls.
* The D365 data source is only available with the **Enterprise Edition** of SCA.
  {% endhint %}


---

# 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.secure-contacts.com/documentation/data-sources/d365-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.
