Dynamics 365 Import

Import Dynamics 365 Sales users, accounts, contacts, leads, opportunities, notes and activities into Odoo CRM, with a stage map, user matching and incremental re-runs.

Buy on the Odoo App StoreThe catalogue

What it does

Brings a Dynamics 365 Sales environment into Odoo CRM: users are matched to your Odoo users, accounts become companies with their contacts, leads and opportunities land in the Odoo pipeline through a stage map built from the sales stages (won and lost come from each opportunity), qualified leads are archived, and notes, phone calls, appointments and tasks become internal notes in the chatter of the record they belong to.

Re-runs read only what changed in Dynamics 365 and never duplicate. Each step writes a row in the Import History with created, updated, archived and skipped records and the API calls made.

Demo video

The video loads from YouTube (privacy-enhanced mode) when you press play. Watch on YouTube

Features

FeatureWhat it does
UsersMatched to existing Odoo users by e-mail for salesperson assignment; no user is ever created; team-owned records get no salesperson.
Accounts and contactsCompanies and their contacts with address, e-mail, phone and mobile, job title, department, industry and description.
LeadsWith company, contact details, source and owner; qualified leads are archived, disqualified leads are lost.
OpportunitiesEstimated revenue, probability and close date; the sales stage through the Stage Map; won and lost exactly as each opportunity is closed.
Notes and activitiesNotes, phone calls, appointments and tasks as internal notes in the chatter, with start, end or due date, location, duration and status.
Incremental re-runsOnly records modified since the last import are read; every record is matched by its Dynamics 365 id first.
SecurityRead-only; the client secret is visible to administrators only and never logged; only your environment and Microsoft's sign-in service are called.

Setup

  1. Microsoft Entra ID: register an app and create a client secret; note the application (client) id and the directory (tenant) id.
  2. Power Platform admin center: your environment > Settings > Users + permissions > Application users. Add the app with a security role that can read the records to import.
  3. Odoo: Settings > Dynamics 365. Enter the environment URL, tenant id, application id and secret and click Test Connection.
  4. Click Import from Dynamics 365, choose what to import and click Start Import (or Run in Background for a large environment). Check the User Map and the Stage Map, then run again: only changes are read.

Requirements

  • Odoo 17, 18, 19 or 20, Community edition
  • Odoo apps: CRM, Contacts, Discuss
  • Python requests on the Odoo server

What it does not do

  • Export from Odoo to Dynamics 365 (one-way import).
  • Records deleted in Dynamics 365 (they stay in Odoo).
  • E-mails, attachments, products, quotes, orders, custom tables and custom columns.
  • Dynamics 365 on government or sovereign clouds; creating Odoo users.

Tests

Automated tests, last run
OdooTests passedLast run
1771
1871
1971
2071

The tests ship with the module source, so you can run them on your own server.

Questions

What access does it need?

An app registration with a client secret, added as an application user with a security role that can read the imported tables. The import only reads; it never changes anything in Dynamics 365.

Does a second import create duplicates?

No. Records are matched by their Dynamics 365 id; a re-run only reads what changed since the last import.

How are won and lost opportunities mapped?

From each opportunity's own status in Dynamics 365, so a won opportunity is won in Odoo whatever sales stage it was in.

What happens to qualified leads?

They are imported and archived, without a lost reason, because they became opportunities in Dynamics 365.

Would you rather we ran the migration?

CRM Smiths runs managed CRM migrations into Odoo: fixed scope, published prices, from $8,000.

See migration scope and prices [email protected]