Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics 365 | Integration, Dataverse...
Suggested answer

Server-side synchronization working for multiple Exchange Online servers

Posted on by 15

I have a customer service mailbox (shared mailbox) that sits on an Exchange Online instance that is outside of my O365 tenant where I have Dynamics CRM hosted. I want to create a queue that is connected to this mailbox and have it automatically create activities and cases using Dynamics CRM's server-side email synchronization. My customer service agents should then be able to view available queue items and act on customer issues within the Customer Service Hub.

When configured in our non-production environments, the email/case creations are successful because they are using a shared mailbox that is hosted on an Exchange instance found in the same O365 tenant as our Dynamics CRM. In our production environment, this is not working when trying Exchange Online, POP, and IMAP connection types on the Email Server Profile (ESP).

Short question: how do I get server side sync to happen with an IMAP, POP or Exchange Online connection while another connection (Exchange Online) is working?  Using Outlook for synchronization is not an option for me.

Details:

In my organization, we have multiple Office 365 tenants. According to the Microsoft docs (https://docs.microsoft.com/en-us/power-platform/admin/supported-email-service-configurations-server-side-synchronization#unsupported-email-service-configurations), only an Exchange Online instance that resides in the same tenant as Dynamics CRM is supported. So I cannot have two Exchange Online connections in my environment. Ok, there's gotta be another way, or so I thought.

For the sake of this question, let's call the Exchange Online instance that is set up in the same Microsoft/Office 365 tenant as CRM as our Connected Exchange instance. And let's call the other one outside of our O365 the Guest Exchange instance. The Connected instance is using an Exchange Online ESP, and it appears to work flawlessly.

My ideal is to use a mailbox to manage credentials. The mailbox for the queue is set to "Server-Side Synchronization or Email Router" for both incoming and outgoing email. The box for Appointments, Contacts and Tasks is greyed out but looks to be "Microsoft Dynamics 365 for Outlook".

Here's what I tried, all without success:

  1. Add a POP/SMTP ESP for the Guest instance, assign credentials to the queue for the mailbox, approve the mailbox, and leverage CRM's ability to use these credentials for syncing the mailbox. This sends the "welcome, your account is synced" email to the mailbox. No sync.
  2. Add a IMAP/SMTP ESP for the Guest instance, assign credentials to the queue for the mailbox, approve the mailbox, and leverage CRM's ability to use these credentials for syncing the mailbox. This sends the "welcome, your account is synced" email to the mailbox. No sync.
  3. Repeat steps 1 and 2, except attempt to set credentials at the ESP level. This failed as expected since the account does not have impersonation privileges. No sync.
  4. Deactivate the Record Creation and Update Rules just to see if it would at least create the email activity. No sync.

In the synchronization monitoring dashboard, I get no errors on the synchronization. I can see the emails going to the shared mailbox in the Guest instance, so I know CRM has the correct connection settings and can use it.  I see nothing in the System Jobs view that indicates failure. Looking at the "All Activities" view in the Activities main view, I see nothing there.

What configuration should I be using to get server-side sync working on both email server profiles?

Thanks.

  • Suggested answer
    Zaidel Zertuche M Profile Picture
    Zaidel Zertuche M 187 on at
    RE: Server-side synchronization working for multiple Exchange Online servers

    Hi atonyba you can't have SSS (Server Side Sync) on a "Guest Exchange" using the Exchange Online Profile for a remote Server or the mix of the following IMAP/POP3/SMTP profile.
    The SSS will only occur for the Microsoft Exchange Online Profile which is the profile integrated within your same tenant for Exchange and CRM services (that also means that you can't create a new Exchange Server Online Profile for a "Guest Exchange" service)

    or when you setup a "Guest Exchange" using POP3/SMTP (in this way you will only able to sync emails both incoming and outgoing)

    Besides, the ACT (Appointment, Contacts and Task) can't be synced from a "queue" mailbox even for a queue on the same tenant for Exchange and CRM, since the queue is not a user and you can't assign any of these type of activities to a queue (non-person profile).

    So, for your scenario should work if you setup your "Guest Exchange" as a POP3/SMTP profile and use this profile for your queue mailbox assign credentials to the queue for the mailbox, approve the mailbox, and leverage CRM's ability to use these credentials for syncing the mailbox email. NOTE THAT This will only sync "mails" NOT ACT.

    ACT is not supported for any other kind of profile different to Exchange Profile within the same tenant. Using server-side synchronization

    About SSS: SSS has the follow benefit 

    Synchronize with POP3 email servers. You can use server-side synchronization to synchronize customer engagement apps with Gmail, Outlook.com, Yahoo, and other POP3 email servers. Note, however, that you can't synchronize appointments, contacts, and tasks with POP3 email servers.

    Hope this can help you.

    Zaidel Zertuche

    Support Eng | Dynamics 365 CE

  • atonyba Profile Picture
    atonyba 15 on at
    RE: Server-side synchronization working for multiple Exchange Online servers

    Ben, are you saying that I cannot have second connection to an Exchange server via a POP or IMAP connection, or that a POP/IMAP connection type does not allow for server side synchronization?

  • Suggested answer
    Ben Thompson Profile Picture
    Ben Thompson 6,350 on at
    RE: Server-side synchronization working for multiple Exchange Online servers

    You can't - the only way to resolve this is to forward those emails into a mail box within the O365 tenant your Dynamics 365 is hosted on and from where you other emails are being synced.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans