Microsoft Dynamics Cases

Set up Dynamics 365 Customer Service with LiveChat

Create an Application in Azure Active Directory

  1. Go to https://admin.microsoft.com and select Azure Active Directory.

Create application

  1. When in the Azure Active Directory admin center, select Azure Active Directory from the left sidebar. Then, go to App registrations and click Register an application.

App registrations

  1. Enter the name for your integration, for example Microsoft Dynamics Cases for LiveChat (you can change it later). Choose the supported account types for your organization and click Register.

Register application

  1. Next, go to the API permissions tab and click Add a permission. You'll see several tiles in the Commonly used Microsoft APIs category. Choose Dynamics CRM.

Add permission

  1. After that, select the user_impersonation permission and click Add permissions.

Select permission

  1. Click on Grant admin consent for your organization and confirm it by clicking Yes. You should see: Successfully granted admin consent for the requested permissions.

Grant consent

  1. Go to the Overview tab, find, and store in a safe place the following info:

    • Application (client) ID
    • Directory (tenant) ID

You will need it during the setup of the LiveChat integration.

Storing app info

  1. Go to Certificates & secrets and add a new client secret by clicking the button.

Add client secret

  1. In the Description field, enter "Microsoft Dynamics Cases for LiveChat" and choose the expiration time period for the client secret. For the expiration date, we suggest choosing Never, but it all depends on your organization. Click Add to save changes.

Edit client secret

  1. Make sure to store the newly created secret value in a safe place. You will need it later when setting up the LiveChat integration.

Store client secret

  1. At this point, you should have the following info:

    • Application (client) ID
    • Directory (tenant) ID
    • Secret

Create an application user

  1. Go to https://admin.microsoft.com and select Dynamics 365 from the left-hand side menu.

Select Dynamics 365

  1. Click on your Customer Service application.

Select Customer Service app

  1. You should be redirected to a URL looking somewhat like this one: https://[YOUR_ORGANIZATION].crm[XX].dynamics.com. Copy the organization from the URL and store it in a safe place. You will need when setting up the LiveChat integration.

Copy organization from URL

  1. From Settings in the top right corner select Advanced Settings.

Go to Advanced Settings

  1. Click on Settings and then Security.

Go to Security

  1. Go to Users > Application Users > New.

Go to Application Users

  1. Enter your details including Application ID from Azure Active Directory. Click Save & Close.

Enter Application ID

  1. Your newly created user needs specific User Roles to access the organization data such as Contacts and Cases. We suggest the following Roles:

    • Common Data Service User
    • Customer Service Representative

Manage User Roles

Connect LiveChat with your Dynamics organization

  1. Go to the LiveChat Marketplace and click Buy.
  2. Next, navigate to the integration's settings page.
  3. Enter the previously stored data:

    • Organization URI
    • Application (client) ID
    • Application Secret
    • Directory (tenant) ID

  4. Click on Save changes and then Test connection. This step is necessary to verify all the permissions of your newly created Application User (see Create Application User). Please, make sure that you have at least one existing Contact in your CRM before testing the connection.

Test connection

  1. If all goes well, you should receive a success notification.

Success notification

How to use Microsoft Dynamics Cases

You can access the integration from 3 sections of the LiveChat application:

  • Chats
  • Customers
  • Archives

Existing contact

The integration uses a customer's email. If the email matches a contact existing in Microsoft Dynamics, you 'll see the contact in the Customer Details section.

Exisiting contact LiveChat

You can then edit the contact right in the integration. You can access it from the Contact tab.

Editing Contacts LiveChat

All cases assigned to a contact are available in the Cases tab.

Cases tab LiveChat

New contacts

If the email doesn't match any contact in your CRM, Customer details will tell you that "Contact doesn't exist yet".

Non-existing contact LiveChat

You can create a new contact right in the integration, in the Contact tab.

Add new contact LiveChat

Adding chat transcripts

You can create a new Case based on the chat transcript. The newly created Case will appear first on the list of cases. You can also assign the transcript to an existing case.

Adding chat transcript LiveChat

The chat transcript, which includes all information from the pre-chat survey will be added to the Case timeline.

Chat transcript on timeline