Skip to content

Dynamics 365

Bring your Microsoft Dynamics 365 contacts and accounts into the Daktela CRM, so agents know who is calling or writing before they answer β€” without switching to Dynamics 365.


What it does and when to use it

The Dynamics 365 integration regularly imports your Dynamics 365 customer data into a Daktela CRM database:

  • Accounts become Daktela CRM accounts β€” including accounts that have no contacts.
  • Contacts become Daktela CRM contacts, each linked to the account set as its Company Name in Dynamics 365.

Data flows one way, from Dynamics 365 to Daktela. Dynamics 365 stays your master CRM; Daktela keeps an up-to-date copy that agents work with. Leads, opportunities, cases and activities are not imported.

There are two integrations, depending on where your Dynamics 365 runs:

  • Dynamics 365 β€” for Dynamics 365 in Microsoft's cloud (online). Daktela signs in with an application registered in Microsoft Entra ID.
  • Dynamics 365 on premise β€” for Dynamics 365 installed on your own server. Daktela signs in with a username and password.

Typical use cases

  • Recognise customers. An incoming call, e-mail or chat is matched to the synced contact, so the agent sees the customer's name and company right away.
  • Give agents context. Agents see contact and account details in Daktela's CRM while they handle the interaction, with no second application open.
  • Jump to Dynamics 365 when needed. Each imported contact and account can carry a link that opens the same record in Dynamics 365.
  • Keep one source of truth. Sales keeps editing customers in Dynamics 365; changes reach the contact centre automatically within half an hour.

Tip

If you also use the Azure AD integration to let users sign in to Daktela with their Microsoft accounts, register a separate application for each of the two integrations.


Prerequisites and setup

Prerequisites

  • For Dynamics 365 (online): an administrator who can register applications in Microsoft Entra ID (Azure portal), and a Dynamics 365 administrator who can add application users to your environment.
  • For Dynamics 365 on premise: a Dynamics 365 user account with read access to contacts and accounts, and a server that supports Web API version 8.2 and is reachable from the internet.
  • In Daktela: an administrator account with access to Settings β†’ Integrations, and a CRM database to import the data into.

Using Dynamics 365 on premise? Skip Steps 1–3 and start with Step 4.

Step 1: Register an application (online only)

  1. Sign in to the Azure portal as an administrator and open Microsoft Entra ID (formerly Azure Active Directory).
  2. Go to App registrations and click New registration.
  3. Enter a name, for example Daktela integration, and click Register.
  4. Copy the Application (client) ID β€” you'll enter it in Daktela as the Application ID.

    Application (client) ID on the overview page of the app registration

Step 2: Add a client secret (online only)

  1. In the application, go to Certificates & secrets and click New client secret.
  2. Enter a short description, choose an expiry and click Add.
  3. Copy the secret's Value right away β€” Azure shows it only once. You'll enter it in Daktela as the Application secret.

    Value of the new client secret

Warning

When the client secret expires, the synchronisation stops. Before it does, create a new secret and enter it in Daktela (Step 4).

Step 3: Create an application user in Dynamics 365 (online only)

Dynamics 365 lets the application read data only through an application user.

  1. In the Power Platform admin center, open your environment and go to Settings β†’ Users + permissions β†’ Application users.
  2. Click New app user and select the application from Step 1.
  3. Assign a security role that can read contacts and accounts, for example System Administrator.

Step 4: Connect Dynamics 365 in Daktela

  1. In Daktela, go to Settings β†’ Integrations and click Configure under Dynamics 365 (online) or Dynamics 365 on premise.
  2. Fill in the connection form.

    For Dynamics 365 (online):

    Field What to enter
    CRM Database The Daktela CRM database the Dynamics 365 data is imported into.
    CRM Record type Leave empty β€” the Dynamics 365 integration doesn't import CRM records.
    Instance URI The address of your Dynamics 365 environment, e.g. https://yourcompany.crm4.dynamics.com β€” without a trailing slash.
    Application ID The Application (client) ID from Step 1.
    Application secret The client secret Value from Step 2.

    For Dynamics 365 on premise:

    Field What to enter
    Instance URI The address of your organisation on the server, e.g. https://crm.yourcompany.com/YourOrganization β€” without a trailing slash.
    Username The Dynamics 365 user Daktela signs in with.
    Password The password of that user.
  3. Click Authorize.

Note

The on-premise form has no CRM Database field: Dynamics 365 on premise always imports into the first CRM database of your Daktela instance.

Step 5: Pair the fields

  1. A list of your Daktela CRM fields opens. Under Contact pairing, choose the Dynamics 365 field that fills each Daktela contact and account field. Fields are listed by their logical names (e.g. emailaddress1, telephone1), plus URL β€” a link to the record in Dynamics 365.
  2. Click Activate.

The first synchronisation runs within 30 minutes.


Technical details

Topic Behaviour
Direction One-way, Dynamics 365 β†’ Daktela. Nothing is written back to Dynamics 365.
Connection Daktela passes the credentials to the Daktela integration service, which calls the Dynamics 365 Web API on its behalf. The credentials are verified when you click Authorize: the service reads one contact.
API β€” online Dynamics 365 Web API v9.0 (<Instance URI>/api/data/v9.0/).
API β€” on premise Dynamics 365 Web API v8.2 (<Instance URI>/api/data/v8.2/).
Authentication β€” online OAuth 2.0 client credentials flow with Application ID and Application secret against Microsoft Entra ID. The tenant is detected automatically from the Instance URI; the access token is reused until it expires.
Authentication β€” on premise Username and Password, sent with NTLM or Basic authentication.
Queries FetchXML queries on the account and contact entities; contacts are read together with their account (outer link from parentcustomerid to accountid). The available fields are read from EntityDefinitions(LogicalName='contact')/Attributes and EntityDefinitions(LogicalName='account')/Attributes.
Schedule Every 30 minutes.
Incremental sync Each run asks for records whose modifiedon is on or after the date of the previous run. FetchXML compares the date only, so records changed earlier on the same day are fetched again in later runs β€” they update the same Daktela records, no duplicates are created. The first run imports all records.
Batch size Records are fetched in pages of 100, ordered by modifiedon.
Order of entities Accounts first, then contacts β€” so a contact can always link to its account.
Field values For contacts, choice (option set) fields are imported as the text Dynamics 365 displays. Account fields are imported as stored, so a choice field arrives as its numeric value.
Multiple values If a value paired to Daktela's e-mail, phone number or mobile field holds several values separated by ; or ,, they are imported as separate values.
Multiple configurations You can connect more than one Dynamics 365 environment, or β€” online only β€” import into more than one CRM database. Each configuration has its own tile, titled with its Instance URI.
Not supported Leads, opportunities, cases, activities and other entities; deletions (a record deleted in Dynamics 365 stays in Daktela); writing data back to Dynamics 365.

How records are matched

  • Every imported contact and account gets the Daktela unique name <configuration ID>_<Dynamics 365 ID>. Daktela remembers this pairing, so later changes in Dynamics 365 update the same Daktela record instead of creating a duplicate.
  • The Dynamics 365 ID and name are always paired automatically: contactid β†’ unique name and fullname β†’ title for contacts, accountid β†’ unique name and name β†’ title for accounts. All other fields follow your pairing from Step 5; if you leave the contact's first and last name unpaired, they are filled from firstname and lastname.
  • Contact β†’ account: the contact is linked to the account in its Company Name field (parentcustomerid). If that field is empty or points to another contact, the contact is imported without an account.
  • URL field: links to <Instance URI>/main.aspx?pagetype=entityrecord&etn=contact&id=<ID> for contacts and …&etn=account&id=<ID> for accounts.
  • If you delete an imported contact or account in Daktela, the next run does not recreate it; it reports it as an error instead.

Sync errors

If a run fails β€” the integration service is unreachable, Dynamics 365 rejects the credentials, or some records can't be saved β€” the Dynamics 365 tile in Settings β†’ Integrations shows a warning. Open it to download an error file (CSV) listing each failed record with its title, unique name, entity type and the reason. If the integration service can't connect at all, Daktela also e-mails the administrators β€” once, and not again until the connection works.

Integration sync error warning banner

Messages you may see:

  • Authentication succeeded but contact lookup failed. Please verify permissions for contact search. β€” Daktela can't read contacts. Online, check that the application user from Step 3 exists and has a role with read access to contacts. On premise, this message also appears when the username or password is wrong.
  • Missing params β€” the Instance URI, Application ID or Application secret is missing. Click Configure, complete the form and click Authorize.
  • No new accounts available or Unable to perform contact lookup, the response did not contain what was expected β€” the run found no changed accounts or contacts to import. The run is marked as failed, but the connection itself works.

If the online integration stops working after it ran fine for months, check first whether the client secret from Step 2 has expired.