English
Microsoft Dynamics 365
Creates, finds and updates Dynamics 365 contacts, accounts, leads and opportunities; adds a note with an email’s file.
The Microsoft Dynamics 365 node acts on an environment’s contacts, accounts, leads and opportunities, through a Dynamics 365 connection. Pick a Table, then an Operation: Create, Update, Get, Search, or Add a note (optionally with an email’s file).
At a glance
- Type:
dynamics365.api· version 1 - Category: Data
- Kind: Step — one stage of a run
- Effect: Writes outside (
external_write) — writes outside Loop & Roll; described instead of performed during a test run - Needs a carrier email: No
- Connection: Microsoft Dynamics 365
- Inputs:
main - Outputs:
main
Connection
This node needs a Microsoft Dynamics 365 connection.
Parameters
connection
Dynamics 365 connection — The Dynamics 365 connection to use. Create it once in Connections; its key never appears in the workflow.
- Type: Connection (
credential) - Required: Yes
- Default:
""(empty)
table
Table
- Type: One choice (
options) - Required: Yes
- Default:
lead - Options:
contact— Contactsaccount— Accountslead— Leadsopportunity— Opportunities
operation
Operation
- Type: One choice (
options) - Required: Yes
- Default:
create - Options:
create— Createupdate— Updateget— Getsearch— Searchnote— Add a note (and a file)
recordId
Record — The record’s ID (00000000-0000-0000-0000-000000000000), often {{ data.<step>.id }}.
- Type: Text (
string) - Required: Yes
- Default:
""(empty) - 36 characters at most
- Shown when:
operationis one ofupdate,get,note - Expressions:
{{ }}accepted
values
Columns — The column’s logical name and its value. Lead: lastname and subject (required), firstname, emailaddress1, companyname, telephone1, description. Contact: lastname, emailaddress1. Account: name. Opportunity: name, and the customer through customerid_account@odata.bind = /accounts(<id>).
- Type: Key / value pairs (
keyValue) - Required: No
- Shown when:
operationis one ofcreate,update - Expressions:
{{ }}accepted
fieldsJson
Fields as JSON (advanced) — For values that are not text (numbers, checkboxes, lists) and custom fields. Merged over the fields above.
- Type: Long text (
text) - Required: No
- Default:
""(empty) - 20000 characters at most
- Shown when:
operationis one ofcreate,update - Expressions:
{{ }}accepted
searchTerm
Search for — An exact email address (contacts, accounts, leads), otherwise part of a name.
- Type: Text (
string) - Required: Yes
- Default:
""(empty) - 255 characters at most
- Example:
{{ email.from.email }} - Shown when:
operationis one ofsearch - Expressions:
{{ }}accepted
limit
Maximum count
- Type: Number (
number) - Required: No
- Default:
10 - Whole number, from 1 to 100
- Shown when:
operationis one ofsearch
noteSubject
Note title
- Type: Text (
string) - Required: No
- Default:
""(empty) - 500 characters at most
- Example:
{{ email.subject }} - Shown when:
operationis one ofnote - Expressions:
{{ }}accepted
noteText
Note text
- Type: Long text (
text) - Required: No
- Default:
""(empty) - 100000 characters at most
- Example:
{{ email.bodyText }} - Shown when:
operationis one ofnote - Expressions:
{{ }}accepted
attachmentPosition
Attachment (position) — Optional: the attachment to add to the note (1 for the email’s first one, or {{ data.<step>.attachmentPosition }}). Empty: a note without a file. 3 MB at most.
- Type: Number (
number) - Required: No
- Whole number, from 1 to 2000000
- Shown when:
operationis one ofnote
Outputs
main— Taken once the Dynamics 365 call has succeeded. An error answer from Dataverse fails the step instead.
Data produced
What this node adds to the run data, and how to read it in an expression. <step> stands for the step key: the node name turned into an identifier (see Data and expressions).
{{ data.<step>.id }}—string. Create, update, get: the record ID.{{ data.<step>.record }}—object. Create, get: the record, columns keyed by logical name ({{ data.<step>.record.emailaddress1 }}).{{ data.<step>.records }}—array of object. Search: the records found.{{ data.<step>.first }}—object. Search: the first record found, ornull.{{ data.<step>.found }}—boolean. Search:truewhen at least one record is found.{{ data.<step>.noteId }}—string. Add a note: the ID of the created note.{{ data.<step>.simulated }}—boolean. true when the write was described instead of done (test run).{{ data.<step>.summary }}—string. The one-line summary in the member’s language.