Dynamics

Connect Convrs to your Microsoft Dynamics 365 environment. Convrs can then write each conversation to the customer's record, show agents that record during a chat, and let agents start outbound chats from a Dynamics search.

Once the integration is enabled, Convrs can:

  • Write the transcript of every closed conversation as a Note on the customer's Contact or Lead.
  • Create a Lead for a customer Dynamics doesn't know yet, if you turn that option on.
  • Show the customer's Contact or Lead on the CRM tab of the User Details panel.
  • Let agents search Dynamics Contacts and Leads when they start an outbound chat, so the chat is linked to the right record from the first message.

Convrs connects as an app you register in your own Microsoft Entra tenant. You control what it can read and write through the security role you give that app in Dynamics.

Standard and Custom Integrations

Dynamics 365 is highly configurable, and many organisations record conversations in their own way. This article describes the standard integration, which writes each transcript as a Note on a Contact or Lead. If your organisation needs something different, Convrs can build a custom integration for you. Contact support to discuss it, and see Custom Integrations below.

Permission Required

Setting up Dynamics 365 needs the IntegrationDynamics permission (see Roles and Permissions). If Dynamics 365 isn't in your Integrations menu, your plan may not include it. Contact support.

Before You Start

Convrs signs in to Dynamics as an app registered in your Microsoft Entra tenant. You need someone who can register apps in Entra and manage users in the Power Platform admin center. You register the app once, then give it a security role in the Dynamics environment you want to connect.

Register an App in Microsoft Entra

Create the app Convrs signs in as, and a client secret for it.

Warning
Write down the date the client secret expires, because Convrs can't see it. When the secret expires, transcripts, the CRM tab and outbound search stop working until you save a new secret in Convrs. Create the new secret in Entra before the old one runs out.

Steps:

  1. In the Microsoft Entra admin center, open App registrations and click New registration.
  2. Give the app a name you'll recognise, such as "Convrs", and click Register. You don't need a redirect URI.
  3. On the app's Overview page, copy the Application (client) ID and the Directory (tenant) ID.
  4. Open Certificates & secrets, click New client secret, and choose when it expires.
  5. Copy the secret's Value straight away. Entra shows it only once.

Add the App to Your Dynamics Environment

Make the app an Application user in your environment and give it a security role.

Note
The security role decides what Convrs can do in Dynamics. The privileges each feature needs are listed below.

Steps:

  1. In the Power Platform admin center, open Environments and select the environment you want to connect.
  2. Copy the Environment URL from the environment's details. It looks like https://yourorg.crm.dynamics.com.
  3. Open Settings, then Users + permissions, then Application users.
  4. Click New app user, click Add an app, and choose the app you registered.
  5. Choose a Business unit and the Security roles for the app, then click Create.

Privileges the Security Role Needs

Give the app's security role the privileges for the features you use. When you test the connection, Convrs checks the privileges for the options you've turned on and lists any that are missing.

FeaturePrivileges in the security roleNames Convrs lists when one is missing
CRM tabContact: Read. Lead: Read.prvReadContact, prvReadLead
Writing transcriptsContact: Read, Append To. Lead: Read, Append To. Note: Create, Append.prvReadContact, prvReadLead, prvAppendToContact, prvAppendToLead, prvCreateNote, prvAppendNote
Creating LeadsLead: Create.prvCreateLead
Outbound searchContact: Read. Lead: Read. View: Read.prvReadContact, prvReadLead, prvReadQuery

A custom integration may need other privileges. If you have one, the connection test checks the privileges it needs.

Connecting Convrs to Dynamics 365

Enter the app's details in Convrs, then test the connection. Convrs checks it can sign in and reach your environment before it lets you enable the integration.

Enter the Connection Details

Save the app's details and test that Convrs can sign in with them.

Note
Convrs never shows the client secret again after you save it. To change another field and keep the saved secret, leave Client secret blank.

Steps:

  1. Open the Integrations menu and select Dynamics 365.
  2. Fill in the fields described below.
  3. Click Save and test.

Result: Convrs shows Checking the connection… while it signs in. A yellow banner saying Connected means the details work and you can enable the integration. A red banner says what went wrong, and lists any privileges the app user is missing.

FieldWhat to enter
Environment URLThe address of your Dynamics environment, such as https://yourorg.crm.dynamics.com. Environments in other regions use crm2, crm4 and so on. You can paste it with or without https://.
Tenant IDThe Directory (tenant) ID from the app's Overview page in Entra.
Client IDThe Application (client) ID from the same page.
Client secretThe secret's Value. The Secret ID won't work. After you save, the field is left blank and shows the date the secret was saved.

Enable the Integration

Turn the integration on once the connection test passes.

Steps:

  1. Click the Enable button at the bottom of the card. It stays greyed out until a connection test passes.
  2. Confirm in the dialog that appears.

Result: The banner turns green and says Connected. The integration is enabled. Agents can now see Dynamics records on the CRM tab, and the options you've chosen take effect.

Test the Connection Again

Check that the saved details still work.

Steps:

  1. Click the Test connection button.

Result: The banner updates and shows when the connection was last checked.

Tips
  • Test again after you change the app's security role, so Convrs checks the privileges again.
  • Test again after you change a Quick Find view or the search index, so Convrs reads the fields agents search on.

Replace the Client Secret

Switch to a new client secret before the old one expires.

Steps:

  1. In Entra, open the app's Certificates & secrets page and create a new client secret.
  2. Copy the new secret's Value.
  3. In Convrs, paste it into the Client secret field and click Save and test.

Result: Convrs uses the new secret straight away. Once the test passes, you can delete the old secret in Entra.

Disable or Remove the Integration

Turn the integration off, or delete the saved details.

Note
Agents who already have Convrs open keep the Dynamics search box until they reload. A search then tells them Dynamics search isn't available.
Important
Remove can't be undone. Entra shows a secret's value only once, so you will probably need a new client secret to connect again.

Steps:

  1. Click Disable or Remove at the bottom of the card.
  2. Confirm in the dialog that appears.
ButtonEffect
DisableTurns the integration off. Transcripts, the CRM tab and outbound search stop. Your details and options are kept, so you can click Enable later.
RemoveTurns the integration off and deletes the saved details and options. To connect again, you enter everything again, including a client secret.

If the Connection Test Fails

The red banner tells you what Convrs couldn't do. These are the messages you're most likely to see.

Message starts withWhat to do
Tenant not foundCheck the Tenant ID. It is the Directory (tenant) ID on the app's Overview page.
The app wasn't found in that tenantCheck the Client ID, and that the app is registered in the tenant you entered.
The client secret is wrongCopy the secret's Value again. A Secret ID looks similar but won't work.
The client secret has expiredCreate a new secret in Entra and save it in Convrs. See Replace the Client Secret above.
Dynamics 365 wasn't found in that tenantCheck the Environment URL and the Tenant ID belong together.
The environment rejected the sign-inThe Environment URL belongs to a different tenant. Check both values.
The app isn't set up as an Application userAdd the app to the environment as an Application user, or turn that user back on.
Connected, but the app user is missing privilegesAdd the listed privileges to the app's security role, then test again.
Dataverse search is off in this environmentTurn Dataverse search on, or turn off outbound search. See What Outbound Search Needs below.
The contact table (or lead table) isn't in Dataverse searchAdd the table to your environment's search index.

Options

The Options section appears once you've saved the connection details. When you click Save options, Convrs tests the connection again, because the privileges it needs depend on the options you choose.

Choose the Options

Turn transcripts, Lead creation and outbound search on or off.

Note
Agents see a change to the outbound search options the next time they load Convrs.

Steps:

  1. In the Options section, check the options you want.
  2. Click Save options.
OptionEffect
Write the chat transcript to Dynamics when a conversation closesWrites each closed conversation as a Note on the customer's Contact or Lead. See How Transcripts Are Written below.
Create a Lead when no Contact or Lead matches the customer's phone numberCreates a Lead when no record matches the customer's phone number or email, then writes the transcript to it. Needs the transcript option.
Allow Dynamics searching in outboundAdds a Dynamics search box to the outbound chat form. Below the option, Convrs lists the fields agents search on.
Only allow Dynamics matches in outboundAgents must pick a Dynamics Contact or Lead before they can start an outbound chat. Needs Dynamics search.

How Transcripts Are Written

With the transcript option on, Convrs writes each conversation to Dynamics when it closes. The standard integration adds a Note to the customer's Contact or Lead, so it shows on the record's timeline. Convrs writes each conversation once. A conversation that was transferred goes in one Note, which names every agent who took part.

Finding the Customer's Record

Convrs looks for the record in this order and uses the first one it finds.

  1. The linked record: the Contact or Lead the customer is already linked to. A customer is linked when an agent starts a chat from Dynamics search, or when Convrs has written a transcript for them before.
  2. A Contact with their phone number: in the Mobile Phone or Business Phone field.
  3. A Lead with their phone number: in the same two fields.
  4. A Contact with their email address: in the Email field.
  5. A Lead with their email address: in the same field.
  6. A new Lead: only when Create a Lead is on. See Creating a Lead below.
How Records Are Matched
  • The phone number must be stored in international format, with or without the +. For example, +447700900123 and 447700900123 both match. A number stored as 07700 900123 doesn't.
  • Convrs uses active Contacts only, and skips disqualified Leads.
  • If several records match, Convrs uses the newest.
  • A qualified Lead is followed to the Contact created from it, when there is one.
  • If the linked record was merged into another, Convrs uses the record it was merged into. If it was deleted, Convrs searches by phone number and email again.

Creating a Lead

With Create a Lead on, Convrs creates a Lead when nothing matches by phone number or email. The Lead takes the customer's name, their phone number as Mobile Phone, and their email address. Its Description says "Lead created from a Convrs conversation."

Dynamics needs a last name on every Lead. If the customer gave only one name, it becomes the last name. With no name at all, Convrs uses the phone number or email address instead. Names longer than 50 characters are shortened, and an email address too long for the field is left out.

When a Transcript Isn't Written

Convrs doesn't write a transcript in these cases:

  • The customer has no phone number and no email address, so there's nothing to find them by.
  • No Contact or Lead matches, and Create a Lead is off.
  • The conversation has no messages from the agent or the customer. For example, it was only transferred.
  • The integration was disabled, or the transcript option was off, when the conversation closed. Convrs doesn't write these conversations later.
  • Dynamics returned an error, for example because the client secret had expired. Convrs doesn't try that conversation again.

What the Note Contains

Each Note's title names the channel, such as WhatsApp conversation. The Note starts with a short summary:

  • Channel: WhatsApp, SMS, Web chat, Messenger and so on.
  • Started and Ended: when the conversation began and closed.
  • Agent: the agents who took the conversation, in order.
  • Conversation ID: the conversation's ID in Convrs.

Each message follows on its own line, with who sent it and when. Translations appear indented under their message. A voice note is marked [Voice note], and a transfer appears as a System line. All times are in UTC.

A very long conversation is split across several Notes, with titles ending (part 1 of 2) and so on. Each Note holds up to about 99,000 characters.

Custom Integrations

Dynamics environments are often customised, so a Note on a Contact or Lead isn't right for every organisation. Convrs can build a custom integration that records conversations the way your organisation works. A custom integration can, for example:

  • Write the transcript to a different activity type, or to a custom table of your own.
  • Set other fields on the records it writes.
  • Find customers by your own fields, such as an account or application number.
  • Find phone numbers stored in your own format.

A custom integration also decides how the CRM tab finds the customer's record, and the connection test checks the privileges it needs. With a custom integration, the matching rules and Note format in this article may not apply to your organisation. Outbound search works the same way for every integration.

Need a Custom Integration?

Contact support and describe how your organisation records conversations in Dynamics. Support will tell you what's possible and set up the integration for you.

Viewing the Dynamics Record During a Chat

Agents can see the customer's Dynamics Contact or Lead beside the chat, on the CRM tab of the User Details panel.

See the Dynamics Card

View the customer's Dynamics details without leaving Convrs.

Note
The card appears once the customer is linked to a Dynamics record. That happens when an agent starts a chat from Dynamics search, or after Convrs writes a transcript for them. Until then, the tab says This user isn't linked to your CRM.

Steps:

  1. Open a chat in Agent Chat.
  2. In the User Details panel on the right, click the CRM icon (a person in a circle).
  3. The card shows the record's name and each of these fields that has a value: Type, Company, Job Title, Email, Phone, Mobile, Location and Owner. A Lead also shows its Topic and Status.
  4. Click the Dynamics 365 icon beside the name to open the record in Dynamics in a new tab.
  5. Click the Refresh from CRM button to load the latest details.

With Allow Dynamics searching in outbound on, the outbound chat form gains a Search Dynamics contacts and leads box. Agents find the customer in Dynamics and start the chat from their record. The chat is linked to that record from the first message, and its transcript is written there.

Find the customer in Dynamics and start an outbound chat linked to their record.

Note
Dynamics allows one search a second for your whole organisation, because every agent searches as the same app. Convrs sends one search at a time for you. While Searching… shows, pressing Enter again does nothing. If no results appear after 15 seconds, press Enter to search again.

Steps:

  1. Click the + (plus) button at the top of the chat list.
  2. Type a name, email address, phone number or other detail into the Search Dynamics contacts and leads field.
  3. Press Enter to search. Typing on its own doesn't search.
  4. Up to 10 open Contacts and Leads appear. Each shows whether it's a Contact or a Lead, with the name, company, email and phone numbers. If it matched on another field, such as an account number, the result says which.
  5. Click the Dynamics 365 icon on a result to open the record in Dynamics without selecting it.
  6. Click a result to select it. Convrs fills in the phone number, email, first name and last name, using the mobile number when the record has one.
  7. Check the details, edit them if you need to, and click New Chat.

Result: The chat is linked to the record you picked. When the chat closes, its transcript is written to that record, and the CRM tab shows it during the chat.

Tips
  • A result already linked to a Convrs contact on the selected channel shows a badge, with the agent they're allocated to and their tags.
  • Starting a new search clears the result you picked.
  • With Only allow Dynamics matches in outbound on, you must pick a result before you can start the chat.

What Outbound Search Needs

Outbound search uses Dataverse search, so it must be turned on in your environment. An administrator turns it on in the Power Platform admin center, in the environment's Settings under Product and then Features. The Contact and Lead tables must also be in the search index.

Agents search the fields in each table's default Quick Find view, as they would in Dynamics. Only fields that are also in the search index are searched. The integration card lists these fields under Allow Dynamics searching in outbound. To change them, edit the Quick Find view in Dynamics, then click Test connection so Convrs reads them again.

HubSpot Convrs Web Chat API