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.
  • 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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the August Top 10 Community Leaders

These are the community rock stars!

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 796 Super User 2026 Season 2

#2
YUN ZHU Profile Picture

YUN ZHU 481 Super User 2026 Season 2

#3
AndrewThomas81 Profile Picture

AndrewThomas81 377 Super User 2026 Season 2

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans