Events
Power BI DataViz World Championships
Feb 14, 4 PM - Mar 31, 4 PM
With 4 chances to enter, you could win a conference package and make it to the LIVE Grand Finale in Las Vegas
Learn moreThis browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Follow these steps to set up server-side synchronization to send and receive email in Dynamics 365 Customer Engagement (on-premises) from Gmail accounts using OAuth 2.0 as the authorization mechanism.
Note
The Gmail OAuth email server profile requires version 9.1 or later and works for up to 100 users. Create multiple OAuth profiles to associate the same profile with multiple users.
An admin should perform the following procedures:
A mailbox user should perform the following procedure:
Create a project in the Google API Console using the Google account that will send and retrieve email.
In the left navigation pane of the API Console, select OAuth consent screen.
Select the user type:
Select Create.
Enter the name of the app that's asking for consent.
Enter the support address your users should email if they have questions about their consent.
Under Authorized domains, select ADD DOMAIN and then enter your environment's top private domain name; for example, dynamics.com
.
Under Developer contact information, enter your email address.
Select SAVE AND CONTINUE.
In the left navigation pane, select Credentials.
Select CREATE CREDENTIALS > OAuth client ID.
Select or enter the following values:
Setting | Use |
---|---|
Application type | Web application |
Name | The name of your web client |
Authorized JavaScript origins | Your environment's URL; for example, https://contoso.crm.dynamics.com |
Authorized redirect URIs | Your environment's URL with /_grid/cmds/dlg_gmailoauth.aspx appended to it; for example, https://contoso.crm.dynamics.com/_grid/cmds/dlg_gmailoauth.aspx |
Select CREATE.
Note the client ID and client secret that appear on the following page. You'll use them in the next procedure.
You can also find the client ID and secret under Credentials in the API Console.
Under Test users, select ADD USER. Add a Gmail account to test the app with and remember to publish the app after you've tested and turned on the mailbox. Or, publish the app now and any Gmail account can be used to test with.
Sign in to Customer Engagement (on-premises). In the upper-right corner of the web app, select the Settings gear icon, and then select Advanced settings.
Select the arrow next to Settings, and then select Email Configuration.
Select Email Server Profiles.
Select the arrow next to New, and then select IMAP/SMTP Server.
Enter a meaningful Name for the new profile.
For Incoming Server Location, enter imap.gmail.com.
For Outgoing Server Location, enter smtp.gmail.com.
For Authenticate Using, select Gmail OAuth.
For Client Id and Client Secret, enter the information you noted in the previous procedure.
Expand Advanced.
For Incoming Port, enter 993.
For Outgoing Port, enter 587.
Select Save & Close.
Sign in to Customer Engagement (on-premises). In the upper-right corner of the web app, select the Settings gear icon, and then select Advanced settings.
Select the arrow next to Settings, and then select Email configuration > Mailboxes.
Select and edit the mailbox to be used for server-side sync with Gmail.
For Server Profile, select the email server profile that's associated with Gmail OAuth, created in the previous procedure.
Make sure that both Incoming Email and Outgoing Email are set to Server-Side Synchronization or Email Router.
Select Save.
Select SignIn to Gmail. Sign in to and authorize the Gmail account you're using to test with.
Select Save & Close.
Select the mailbox, and then select TEST & ENABLE MAILBOX.
Under Test Email Configuration, select which mailboxes to test. Select OK to run the test.
You can view the results in the mailbox list or in the mailbox record.
Events
Power BI DataViz World Championships
Feb 14, 4 PM - Mar 31, 4 PM
With 4 chances to enter, you could win a conference package and make it to the LIVE Grand Finale in Las Vegas
Learn moreTraining
Module
Introduction to integration with Dynamics 365 Customer Engagement apps - Training
Configure Dynamics 365 Customer Engagement apps to work with your email and manage your mailboxes.
Certification
Microsoft Office Specialist: Outlook (Office 2016) - Certifications
Demonstrate that you have the skills needed to get the most out of Outlook 2016 by earning a Microsoft Office Specialist (MOS) certification.
Documentation
Connect IMAP, POP, or SMTP servers to Dynamics 365 Customer Engagement (on-premises)
Follow these steps to connect Customer Engagement (on-premises) with IMAP/POP3/SMTP email servers, such as those used for Gmail and Yahoo! Mail.