> Markdown versions of all pages of this connector library are available by appending `.md` to the page URL. For the full index of connectors, see [llms.txt](https://connectors.appmixer.com/llms.txt).

# Microsoft Dynamics 365 CRM connector

- Connector: `appmixer.microsoft.dynamics`
- Version: 2.2.1
- Components: 30 (9 triggers, 21 actions)

Dynamics 365 is a portfolio of intelligent business applications that delivers superior operational efficiency and breakthrough customer experiences enabling businesses to become more agile and reduce complexity without increasing costs.

- Connector page: <https://connectors.appmixer.com/connector/appmixer.microsoft.dynamics/2.2.1>
- Source code: <https://github.com/clientIO/appmixer-connectors/tree/dev/src/appmixer/microsoft/dynamics>
- Download package: <https://connectors.appmixer.com/connector/appmixer.microsoft.dynamics/2.2.1/download>

## Authentication

**Type:** OAuth 2

This connector is globally authenticated and verified by Appmixer (Authentication Hub) and is ready to use without registering your own OAuth application with the provider. You can still use your own OAuth credentials (clientId and clientSecret) - see the Connector Configuration section of the documentation. The Authentication Hub is enabled for all hosted Appmixer tenants; on self-managed installations it has to be explicitly set.

**Scopes:**

- `offline_access`

## Triggers (9)

- [Deal Stage Changed](https://connectors.appmixer.com/connector/appmixer.microsoft.dynamics/2.2.1/component/appmixer.microsoft.dynamics.DealStageChanged.md) (`appmixer.microsoft.dynamics.DealStageChanged`): Triggers when the sales stage of an opportunity (deal) changes in Microsoft Dynamics 365. The trigger remembers the stage of each opportunity it has seen and fires only on an actual stage transition - creating or editing an opportunity without changing its stage does not fire it.
- [New Account](https://connectors.appmixer.com/connector/appmixer.microsoft.dynamics/2.2.1/component/appmixer.microsoft.dynamics.NewAccount.md) (`appmixer.microsoft.dynamics.NewAccount`): Triggers when a new account is created in Microsoft Dynamics 365.
- [New Contact](https://connectors.appmixer.com/connector/appmixer.microsoft.dynamics/2.2.1/component/appmixer.microsoft.dynamics.NewContact.md) (`appmixer.microsoft.dynamics.NewContact`): Triggers when a new contact is created in Microsoft Dynamics 365.
- [New Lead](https://connectors.appmixer.com/connector/appmixer.microsoft.dynamics/2.2.1/component/appmixer.microsoft.dynamics.NewLead.md) (`appmixer.microsoft.dynamics.NewLead`): Triggers when a new lead is created in Microsoft Dynamics 365.
- [New Object Record](https://connectors.appmixer.com/connector/appmixer.microsoft.dynamics/2.2.1/component/appmixer.microsoft.dynamics.NewObjectRecord.md) (`appmixer.microsoft.dynamics.NewObjectRecord`): Triggers when a new record of the selected Entity type is created in Microsoft Dynamics 365. Works with any entity, including custom ones.
- [Updated Account](https://connectors.appmixer.com/connector/appmixer.microsoft.dynamics/2.2.1/component/appmixer.microsoft.dynamics.UpdatedAccount.md) (`appmixer.microsoft.dynamics.UpdatedAccount`): Triggers when an account is updated in Microsoft Dynamics 365.
- [Updated Contact](https://connectors.appmixer.com/connector/appmixer.microsoft.dynamics/2.2.1/component/appmixer.microsoft.dynamics.UpdatedContact.md) (`appmixer.microsoft.dynamics.UpdatedContact`): Triggers when a contact is updated in Microsoft Dynamics 365.
- [Updated Lead](https://connectors.appmixer.com/connector/appmixer.microsoft.dynamics/2.2.1/component/appmixer.microsoft.dynamics.UpdatedLead.md) (`appmixer.microsoft.dynamics.UpdatedLead`): Triggers when a lead is updated in Microsoft Dynamics 365.
- [Updated Object Record](https://connectors.appmixer.com/connector/appmixer.microsoft.dynamics/2.2.1/component/appmixer.microsoft.dynamics.UpdatedObjectRecord.md) (`appmixer.microsoft.dynamics.UpdatedObjectRecord`): Triggers when a record of the selected Entity type is updated in Microsoft Dynamics 365. Works with any entity, including custom ones.

## Actions (21)

- [Create Contact](https://connectors.appmixer.com/connector/appmixer.microsoft.dynamics/2.2.1/component/appmixer.microsoft.dynamics.CreateContact.md) (`appmixer.microsoft.dynamics.CreateContact`): Creates a new contact.
- [Create Lead](https://connectors.appmixer.com/connector/appmixer.microsoft.dynamics/2.2.1/component/appmixer.microsoft.dynamics.CreateLead.md) (`appmixer.microsoft.dynamics.CreateLead`): Creates a new lead.
- [Create Object Record](https://connectors.appmixer.com/connector/appmixer.microsoft.dynamics/2.2.1/component/appmixer.microsoft.dynamics.CreateObjectRecord.md) (`appmixer.microsoft.dynamics.CreateObjectRecord`): Creates a new object based on Entity type you select using API v9.2. Object attribute names are localized and available in the language of your account.
- [Create Account](https://connectors.appmixer.com/connector/appmixer.microsoft.dynamics/2.2.1/component/appmixer.microsoft.dynamics.CreateAccount.md) (`appmixer.microsoft.dynamics.CreateAccount`): Creates a new account.
- [Delete Account](https://connectors.appmixer.com/connector/appmixer.microsoft.dynamics/2.2.1/component/appmixer.microsoft.dynamics.DeleteAccount.md) (`appmixer.microsoft.dynamics.DeleteAccount`): Delete an account from Microsoft Dynamics 365.
- [Delete Lead](https://connectors.appmixer.com/connector/appmixer.microsoft.dynamics/2.2.1/component/appmixer.microsoft.dynamics.DeleteLead.md) (`appmixer.microsoft.dynamics.DeleteLead`): Delete a lead from Microsoft Dynamics 365.
- [Delete Contact](https://connectors.appmixer.com/connector/appmixer.microsoft.dynamics/2.2.1/component/appmixer.microsoft.dynamics.DeleteContact.md) (`appmixer.microsoft.dynamics.DeleteContact`): Delete a contact from Microsoft Dynamics 365.
- [Get Account](https://connectors.appmixer.com/connector/appmixer.microsoft.dynamics/2.2.1/component/appmixer.microsoft.dynamics.GetAccount.md) (`appmixer.microsoft.dynamics.GetAccount`): Get an account from Microsoft Dynamics
- [Get Contact](https://connectors.appmixer.com/connector/appmixer.microsoft.dynamics/2.2.1/component/appmixer.microsoft.dynamics.GetContact.md) (`appmixer.microsoft.dynamics.GetContact`): Get a contact from Microsoft Dynamics
- [Get Lead](https://connectors.appmixer.com/connector/appmixer.microsoft.dynamics/2.2.1/component/appmixer.microsoft.dynamics.GetLead.md) (`appmixer.microsoft.dynamics.GetLead`): Get a lead from Microsoft Dynamics.
- [Get Object Record](https://connectors.appmixer.com/connector/appmixer.microsoft.dynamics/2.2.1/component/appmixer.microsoft.dynamics.GetObjectRecord.md) (`appmixer.microsoft.dynamics.GetObjectRecord`): Gets an existing object based on ID and Entity type you select using API v9.2.
- [List Accounts](https://connectors.appmixer.com/connector/appmixer.microsoft.dynamics/2.2.1/component/appmixer.microsoft.dynamics.ListAccounts.md) (`appmixer.microsoft.dynamics.ListAccounts`): Retrieve a list of accounts
- [List Contacts](https://connectors.appmixer.com/connector/appmixer.microsoft.dynamics/2.2.1/component/appmixer.microsoft.dynamics.ListContacts.md) (`appmixer.microsoft.dynamics.ListContacts`): Retrieve a list of contacts
- [List Entities](https://connectors.appmixer.com/connector/appmixer.microsoft.dynamics/2.2.1/component/appmixer.microsoft.dynamics.ListEntities.md) (`appmixer.microsoft.dynamics.ListEntities`): Retrieve the list of entities (object types) available in your Dynamics 365 organization. Use the 'Logical Name' output as the Object Name in other components.
- [List Leads](https://connectors.appmixer.com/connector/appmixer.microsoft.dynamics/2.2.1/component/appmixer.microsoft.dynamics.ListLeads.md) (`appmixer.microsoft.dynamics.ListLeads`): Retrieve a list of leads.
- [Make Api Call](https://connectors.appmixer.com/connector/appmixer.microsoft.dynamics/2.2.1/component/appmixer.microsoft.dynamics.MakeApiCall.md) (`appmixer.microsoft.dynamics.MakeApiCall`): Performs an arbitrary authorized API call.
- [Update Account](https://connectors.appmixer.com/connector/appmixer.microsoft.dynamics/2.2.1/component/appmixer.microsoft.dynamics.UpdateAccount.md) (`appmixer.microsoft.dynamics.UpdateAccount`): Updates an account in Microsoft Dynamics.
- [Update Contact](https://connectors.appmixer.com/connector/appmixer.microsoft.dynamics/2.2.1/component/appmixer.microsoft.dynamics.UpdateContact.md) (`appmixer.microsoft.dynamics.UpdateContact`): Updates a contact in Microsoft Dynamics.
- [Update Lead](https://connectors.appmixer.com/connector/appmixer.microsoft.dynamics/2.2.1/component/appmixer.microsoft.dynamics.UpdateLead.md) (`appmixer.microsoft.dynamics.UpdateLead`): Updates a lead in Microsoft Dynamics.
- [Update Object Record](https://connectors.appmixer.com/connector/appmixer.microsoft.dynamics/2.2.1/component/appmixer.microsoft.dynamics.UpdateObjectRecord.md) (`appmixer.microsoft.dynamics.UpdateObjectRecord`): Updates an existing object based on Entity type you select using API v9.2 and HTTP method PATCH. Object attribute names are localized and available in the language of your account.
- [Delete Object Record](https://connectors.appmixer.com/connector/appmixer.microsoft.dynamics/2.2.1/component/appmixer.microsoft.dynamics.DeleteObjectRecord.md) (`appmixer.microsoft.dynamics.DeleteObjectRecord`): Deletes an existing object based on Entity type you select using API v9.2.

## Changelog

### 2.2.1

- MakeApiCall: Request Headers and Query Parameters set in the Designer are now sent. They were silently dropped: the key-value field stores its rows as a JSON object string, which the component did not parse.

### 2.2.0

- Added polling triggers: New Contact, Updated Contact, New Lead, Updated Lead, New Account, Updated Account, New Object Record and Updated Object Record. They detect created/updated records by polling the Dataverse OData API on createdon/modifiedon, deduplicate by record id and start watching from the moment the flow is started (historical records are never emitted). The New/Updated Object Record triggers work with any (including custom) entity via the same entity selector as the Object Record actions.
- Added the 'Deal Stage Changed' trigger: fires when the sales stage of an opportunity changes. It remembers the stage of each opportunity it has seen and fires only on an actual stage transition (the watched stage attribute is configurable, defaulting to 'salesstage').
- Create/Get/Update/Delete Object Record (and the generic Object Record triggers) now resolve the entity collection segment from the Dataverse metadata instead of naively appending 's' to the logical name, so entities with irregular plurals (e.g. opportunity -> opportunities) work too.
- MakeApiCall: the Request Headers and Query Parameters key-value inputs are also accepted as a JSON string (e.g. when produced by a flow transform).

### 2.1.1

- CreateObjectRecord/UpdateObjectRecord: lookup fields (e.g. regardingobjectid, transactioncurrencyid) are bound via their target-specific navigation property and are no longer marked as required in the inspector — they use navigation-property names rather than the bare logical name and are commonly auto-populated by the Web API, so requiring them blocked otherwise-valid configurations.
- ListEntities: the output variable picker now adapts to the selected Output Type (array / object / file) instead of always showing the array shape.
- UpdateObjectRecord/UpdateAccount/UpdateContact/UpdateLead: the inspector-generation source now wires the required objectName/id inputs (and the schema declares its properties), so inspector generation is no longer rejected by required-input validation.

### 2.1.0

- Added the 'List Entities' component to retrieve all entities (object types) in the organization.
- CreateObjectRecord/UpdateObjectRecord: the Object Name field is now a typeahead that suggests the most common entities while allowing any entity logical name to be typed manually (or bound from the new 'List Entities' component).

### 2.0.0

- (breaking change) MakeApiCall: headers and parameters changed to key-value array inputs (body remains textarea/JSON to support nested structures) per standard #1459 — existing flows that used the old string/textarea headers or parameters must be updated

### 1.0.7

- Added output examples to component schemas.

### 1.0.6

- The authentication flow now displays an account selection screen.

### 1.0.5

- Connection can now be created with custom tenant. To see the option while creating the connection, in the Admin -> Connector Configuration add configuration 'appmixer:microsoft' and inside it, add item 'microsoftTenant' and set its value to true.

### 1.0.4

- Fix for possible connection with empty label.

### 1.0.3

- Initial release
