Skip to content

Dynamics 365

Microsoft Dynamics 365 — manage accounts, contacts, leads, opportunities, and custom entities via the Dataverse Web API.

PropertyValue
Typehttp
Authenticationoauth2
CategoryCRM & Sales
FieldTypeRequiredDescription
instance_urlstringYesDynamics 365 instance URL (e.g. https://org.api.crm.dynamics.com)
tenant_idstringYesAzure AD tenant ID
client_idstringYesAzure AD application (client) ID
client_secretstringYesAzure AD client secret

Query records from any Dataverse entity set using OData.

EndpointGET /api/data/v9.2/{entitySetName}
MethodGET

Retrieve a single record by entity set name and record ID.

EndpointGET /api/data/v9.2/{entitySetName}({recordId})
MethodGET

Create a new record in any Dataverse entity set.

EndpointPOST /api/data/v9.2/{entitySetName}
MethodPOST

Update an existing record (PATCH merge semantics).

EndpointPATCH /api/data/v9.2/{entitySetName}({recordId})
MethodPATCH

Delete a record from a Dataverse entity set.

EndpointDELETE /api/data/v9.2/{entitySetName}({recordId})
MethodDELETE

Create a new lead with sales-specific fields.

EndpointPOST /api/data/v9.2/leads
MethodPOST

Create a new contact record.

EndpointPOST /api/data/v9.2/contacts
MethodPOST

Create a new sales opportunity.

EndpointPOST /api/data/v9.2/opportunities
MethodPOST
name: form-submission-to-dynamics-lead
trigger:
type: webhook
steps:
- name: create-lead
connector: dynamics-365
action: create-lead
input:
firstname: "{{ trigger.body.first_name }}"
lastname: "{{ trigger.body.last_name }}"
emailaddress1: "{{ trigger.body.email }}"
companyname: "{{ trigger.body.company }}"
telephone1: "{{ trigger.body.phone }}"
leadsourcecode: 8
description: "Submitted via {{ trigger.body.form_name }} on {{ trigger.body.page_url }}"
- name: verify-lead-created
connector: dynamics-365
action: get-record
input:
entitySetName: leads
recordId: "{{ steps.create-lead.output.leadid }}"
- name: notify-sales-rep
connector: microsoft-teams
action: post-message
input:
channel: "Sales Leads"
text: "New lead from web form: {{ trigger.body.first_name }} {{ trigger.body.last_name }} at {{ trigger.body.company }}"