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.
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:
| What | Where it comes from |
|---|---|
| Dynamics 365 organisation URL | Your 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) ID | A 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 value | From 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 User | Your 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
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.
Fill in the form
Enter the Dynamics 365 organisation URL, then the Microsoft Entra directory (tenant) ID.
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.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.
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 name | What it does | Read or Write |
|---|---|---|
d365_sales_describe_entities | Lists the tables in your organisation | Read |
d365_sales_describe_entity_fields | Lists one table's columns, choice values and security flags | Read |
d365_sales_get_record | Reads one record by its ID (a GUID) | Read |
d365_sales_query_records | Searches a table | Read |
d365_sales_count_records | Counts matching records without listing them | Read |
d365_sales_list_open_opportunities | Shows the open sales pipeline | Read |
d365_sales_get_record_activities | Shows the emails, calls, tasks and appointments logged against one record | Read |
Change records
| Tool name | What it does | Read or Write |
|---|---|---|
d365_sales_create_record | Creates a record in a table | Write, needs approval |
d365_sales_update_record | Changes columns on an existing record | Write, needs approval |
d365_sales_deactivate_record | Deactivates a record. In Dynamics this is what "delete" usually means | Write, irreversible, always needs a person |
d365_sales_delete_record | Permanently deletes a record | Write, 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_recordrefuses 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.