web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Answered

Exchange Sync. Setup can only work with Exchange Online as this is hard coded in a txt url

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

If your customer is using an Exchange Server OnPrem, then out of the box Exchange Synchronization via web services does not work. 

pastedimage1591700117054v1.png

Repro:
  1. setup Exchange Server OnPrem
  2. populate the Office 365 Authentication mail address with the E-mail address that is hosted on the local Exchange Server
  3. press Validation Exchange Connection via Process in Exchange Sync. Setup.

Fiddler does show it tries to connect to Exchange Online. There are partners / customers that do own a local Exchange Server OnPrem. 

In Exchange 2018, Dynamics 365 BC up to release v14, it is easy to update the following code:

    VAR
      Service@1000 : DotNet "'Microsoft.Dynamics.Nav.EwsWrapper, Version=11.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'.Microsoft.Dynamics.Nav.Exchange.ExchangeServiceWrapper";
      ProdEndpointTxt@1002 : TextConst '@@@={Locked};ENU=outlook.office365.com/.../Exchange.asmx';
      ExpiredTokenErr@1003 : TextConst 'ENU=Trying to reconnect. Please close and reopen the add-in.';
 
To:

    VAR
      Service@1000 : DotNet "'Microsoft.Dynamics.Nav.EwsWrapper, Version=11.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'.Microsoft.Dynamics.Nav.Exchange.ExchangeServiceWrapper";
      ProdEndpointTxt@1002 : TextConst '@@@={Locked};ENU=exchange.local/.../Exchange.asmx';
      ExpiredTokenErr@1003 : TextConst 'ENU=Trying to reconnect. Please close and reopen the add-in.';
 
For BC150, BC160 and later we added an event you can subscribe to. The code adjustment (not a platform fix) will be part of July 2020 CU. 
Thanks.
I have the same question (0)
  • Verified answer
    Marga Profile Picture
    575 on at

    Thanks.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,091 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 1,032 Super User 2026 Season 1

#3
Dhiren Nagar Profile Picture

Dhiren Nagar 946 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans