knowledgecenter-breadcrum

Knowledge Center

17 Jun, 2020

Gmail Integration with Dynamics 365

Posted on 17 Jun, 2020 by Admin, Posted in Dynamics 365

Gmail Integration with Dynamics 365 Blogs

Gmail Integration with Dynamics 365

Configuring Gmail for the Integration

Firstly, we will have to look at taking a look at our settings in Gmail to permit external access to the mailbox using POP3 protocol.

  1. From mail.google.com, navigate to Settings > Forwarding and POP/IMAP
  2. Select Enable POP for mail that arrives from now on and for When messages are accessed with POP select archive Gmail’s copy.
  3. Click on Save Changes.

Gmail will at times block connections from third party apps. To enable this connection:

  1. Go to https://myaccount.google.com/lesssecureapps
  2. Toggle Allow less secure apps: ON
Creating a Gmail Email Server Profile in Dynamics

We must next configure the Email Server Profile in Dynamics 365 to connect to Gmail. Dynamics 365 will want to use Exchange Online by default, so we must create an entirely new profile so the mailboxes can connect to Google’s servers.

  1. Navigate to your Dynamics 365 instance using your custom URL.
  2. Go to Settings > Email Configuration > Email Server Profiles
  1. Click on + New> POP3/SMTP Server
  1. Type in a name, such as “Gmail”
  2. Input the following values:
    1. Incoming Server Location: pop.gmail.com
    2. Outgoing Server Location: smtp.gmail.com
    3. Authenticate Using Credentials Specified by a User or Queue
    4. Use same settings for Outgoing Yes
  1. Expand the Advancedtab and enter the following values:
    1. Incoming Port: 995
    2. Outgoing Port: 465
  1. Click Save and Close.
Enabling Server-Side Synchronization in Dynamics

Server-side synchronization is the mechanism that provides the integration between Dynamics 365 and an email server. This is Microsoft’s preferred method of synchronization, with the other two options (Outlook and the Email Router) being gradually phased out. To ensure that this is enabled:

  1. Navigate to Settings > Email Configuration > Email Configuration Settings
  2. Verify that Process Email Using is set to Server-Side Synchronization
  3. Verify that the Server Profile is populated with the Gmail Server Profile you just created. If not, change it as such.
  4. Click OK.
Setting-up Mailboxes

Our final steps will be to approve our mailboxes to use the Email Server Profile we created to communicate with Google’s servers.

  1. Go to Settings > Email Configuration > Mailboxes
  2. Double-click on the mailbox you would like to configure.
  3. Modify the following values:
    • Allow to Use Credentials for Email Processing: Yes
    • Enter the Gmail account credentials in the username and password section.
    • Server Profile:
    • Incoming Email: Server-Side Synchronization or Email Router
    • Outgoing Email: Server-Side Synchronization or Email Router

4. Click on Save.

5. Click on Approve Email (note that this will only work if you are an Office 365 Global Admin)

6. Click OK.

7. Click on Test and Enable Mailbox

8. Note that, when you are prompted to “Sync items with Exchange from this Dynamics 365 Organization only,” leave the box unchecked and hit Ok.

9. You should be able to see the status of the mailbox in the alerts section.

10. You can now see the status of the mailbox you just configured in My Active Mailbox.

Comment

This is a Required Field

Loading

Recent Updates

Case Study
06 Sep, 2024

Implementation of Business Central for a Trading Organization

Customer Overview A prominent trading organization sought to enhance its operational efficiency and streamline its business processes by implementing Dynamics…

READ MORE
Blogs
03 Sep, 2024

Optimizing Code Check-ins: Ignoring Unnecessary Files for a Cleaner Azure DevOps Repo.

Introduction In this blog, we will learn about the code check-in process in DevOps. After development, unnecessary files are sometimes…

READ MORE
Blogs
20 Aug, 2024

Configure Macros in Omnichannel to improve Agent Productivity

What are Macros? Macros are a set of sequential actions that a user performs. They enable users to perform daily…

READ MORE