Docs
Sign in

Dynamics 365

Dynamics 365 Sales is Microsoft's sales app. It stores accounts, contacts, leads and opportunities in a Microsoft database called Dataverse. With this connector TAO can search and read that data, and create or update records with a person approving each change.

Screenshot to add: The Dynamics 365 Sales (Dataverse) connect form with the organisation URL, tenant ID and client ID and secret fields.

What you can do

Illustrative examples. Ask in your own words.

  • "What tables does our Dynamics 365 Sales have? Is there one for vendor scorecards?"
  • "Find the account called Contoso."
  • "How many open opportunities do we have?"
  • "Show me the open sales pipeline, closing soonest first."
  • "What emails and calls have been logged against that account?"
  • "Update the estimated value on that opportunity."

Before you connect

This connector does not use a sign-in window. Your IT team creates an app inside your own Microsoft environment, and TAO uses that app. You need these from them:

WhatWhere it comes from
Dynamics 365 organisation URLYour own Dataverse address, such as https://contoso.crm.dynamics.com. Copy it from the Power Platform admin centre. Leave off /main.aspx and /api/data
Microsoft Entra directory (tenant) IDA tenant is your company's Microsoft account. The ID is on the app registration's Overview page. A domain such as contoso.com also works
Application (client) ID and secret valueFrom the app registration. The secret needs the Value, not the Secret ID. The Certificates and secrets screen shows both, and the Secret ID is the wrong one
An Application UserYour admin must add the app as an Application User in your Dynamics environment and give it a security role. The product docs say this is needed whichever app issues the token

The app can reach whatever its security role allows. Ask your admin to give it only the access you want TAO to have.

Connect it

  1. Open My Connectors

    Go to Settings and open My Connectors. Find the Dynamics 365 Sales (Dataverse) card. If it is missing, ask your admin to turn it on.

  2. Fill in the form

    Enter the Dynamics 365 organisation URL, then the Microsoft Entra directory (tenant) ID.

  3. Enter the key

    In the key box, type the client ID, a colon, then the secret value, in the form clientId:clientSecret. The field is masked.

  4. Leave the sign-in host alone

    Entra sign-in host (national clouds only) is optional. Leave it blank unless you use US Government or China (21Vianet) Microsoft clouds.

  5. Save and check

    Save the connection. Use Check format to confirm the secret has the right shape. That check does not contact Microsoft.

Tools

Dynamics 365 Sales has 11 tools: 7 read and 4 write.

Discover and read

Table and column names differ between organisations. A team can add its own tables. The first two tools let TAO find them.

Tool nameWhat it doesRead or Write
d365_sales_describe_entitiesLists the tables in your organisationRead
d365_sales_describe_entity_fieldsLists one table's columns, choice values and security flagsRead
d365_sales_get_recordReads one record by its ID (a GUID)Read
d365_sales_query_recordsSearches a tableRead
d365_sales_count_recordsCounts matching records without listing themRead
d365_sales_list_open_opportunitiesShows the open sales pipelineRead
d365_sales_get_record_activitiesShows the emails, calls, tasks and appointments logged against one recordRead

Change records

Tool nameWhat it doesRead or Write
d365_sales_create_recordCreates a record in a tableWrite, needs approval
d365_sales_update_recordChanges columns on an existing recordWrite, needs approval
d365_sales_deactivate_recordDeactivates a record. In Dynamics this is what "delete" usually meansWrite, irreversible, always needs a person
d365_sales_delete_recordPermanently deletes a recordWrite, irreversible, always needs a person

Total: 11 tools (7 read, 4 write).

Limits and good to know

  • Prefer deactivate. The delete tool's own description tells TAO to use deactivate instead. A deactivated record vanishes from lists in the app.
  • No status changes through update. d365_sales_update_record refuses to change a record's active or inactive state. That keeps deactivation under the stricter approval.
  • Is this everything? Results say whether they are complete. A result can say yes, no, or unknown. When it is unknown, treat "none found" with care.
  • Paging. A paged search must have a sort order. Without one, Dataverse can skip records.
  • Hidden columns look empty. Dataverse cannot tell a column you may not see from an empty one. TAO does not claim to know which it is.
  • Disabled by default. The product docs say the connector is added switched off until an admin enables it.