Skip to content

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
The ports of “Microsoft Dynamics 365”: what comes in on the left, what goes out on the rightInput: main. Outputs: main. An error output appears when its failure setting is “Follow the Error output”. It needs a Microsoft Dynamics 365 connection.Microsoft Dynamics 365dynamics365.apimainmainerror · only with “Follow the Error output”Connection: Microsoft Dynamics 365
The ports of “Microsoft Dynamics 365”: what comes in on the left, what goes out on the right

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 — Contacts
    • account — Accounts
    • lead — Leads
    • opportunity — Opportunities

operation ​

Operation

  • Type: One choice (options)
  • Required: Yes
  • Default: create
  • Options:
    • create — Create
    • update — Update
    • get — Get
    • search — Search
    • note — 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: operation is one of update, 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: operation is one of create, 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: operation is one of create, 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: operation is one of search
  • Expressions: {{ }} accepted

limit ​

Maximum count

  • Type: Number (number)
  • Required: No
  • Default: 10
  • Whole number, from 1 to 100
  • Shown when: operation is one of search

noteSubject ​

Note title

  • Type: Text (string)
  • Required: No
  • Default: "" (empty)
  • 500 characters at most
  • Example: {{ email.subject }}
  • Shown when: operation is one of note
  • Expressions: {{ }} accepted

noteText ​

Note text

  • Type: Long text (text)
  • Required: No
  • Default: "" (empty)
  • 100000 characters at most
  • Example: {{ email.bodyText }}
  • Shown when: operation is one of note
  • 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: operation is one of note

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, or null.
  • {{ data.<step>.found }} — boolean. Search: true when 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.

Loop & Roll — the workflow builder for email.