# Set up legacy Outlook contact sync on-premises
> APPLIES TO: Business Central 2025 release wave 2 (v27) and earlier. For later versions, this setup isn't needed. See Save business contacts to Microsoft Outlook<save-business-contacts-to-outlook>.
> IMPORTANT
> This legacy integration uses Exchange Web Services (EWS). Exchange Online starts disabling EWS in October 2026 and fully disables it in April 2027. Configuring OAuth doesn't prevent the EWS retirement from affecting contact synchronization. See Deprecation of Exchange Web Services in Exchange Online<https://learn.microsoft.com/exchange/clients-and-mobile-in-exchange-online/deprecation-of-ews-exchange-online>. For Business Central version 28 and later, use Save business contacts to Microsoft Outlook<save-business-contacts-to-outlook>.
In this article, you learn how to set up Business Central on-premises to synchronize contacts in Business Central with contacts in Outlook. See Synchronize contacts in Business Central with contacts in Microsoft Outlook<admin-synchronize-outlook-contacts>.
## Authentication requirements for legacy contact sync
Contact synchronization requires using the OAuth 2.0 protocol for authentication with Exchange Online. Previously, basic authentication was also supported, but it's been deprecated and is no longer supported with Exchange Online. See https://learn.microsoft.com/exchange/clients-and-mobile-in-exchange-online/deprecation-of-basic-authentication-exchange-online. The following steps configure OAuth authentication for the legacy integration.
## Prerequisites for legacy contact sync
 Exchange Online, either a standalone version or through Microsoft 365 plan
 Access to the Microsoft Entra tenant used by Exchange Online
 Business Central users have a Microsoft 365 or Exchange Online email account, which is assigned to their accounts in Business Central. You can check this setting in the Microsoft 365 Authentication section of user profile in the Users list.
## Set up contact sync
Complete the following steps to set up contact sync. If you're running Business Central Spring 2019 (v.14), you'll have to do an extra step that either modifies application code or sets up a connection to Power BI.
1. Register an app for Exchange Online API in your Microsoft Entra tenant.
 In this step, you add a registered app in the Microsoft Entra tenant of your Microsoft 365 or Exchange Online plan. Like other Azure services that work with Business Central, Exchange Online requires a registered app in Microsoft Entra ID. The registered app provides authentication and authorization services between Business Central and Exchange Online.
 See dev-itpro/administration/register-app-azure#register-an-application-in-microsoft-entra-id in the developer and IT pro help. As you go through the instructions, remember the following points:
  If you've already registered an application as part of an integration with another Microsoft product, such as Power BI, then reuse that registered app. In this case, you'll just have to set up the app with the Office 365 Exchange Online permissions described in the next bullet.
  Configure the registered app with the following delegated permissions to the Office 365 Exchange Online API:
    Contacts.ReadWrite
    EWS.AccessAsUser.All
1. For Business Central version 14, do one of the following tasks:
  Modify page 6700 by changing FALSE to TRUE in the following line of code in the OnOpenPage trigger:
   ```
   PasswordRequired := AzureADMgt.GetAccessToken(AzureADMgt.GetO365Resource,AzureADMgt.GetO365ResourceName,TRUE) = '';
   ```
  Create a new page with the following code in the OnOpenPage trigger:
   ```
   PasswordRequired := AzureADMgt.GetAccessToken(AzureADMgt.GetO365Resource,AzureADMgt.GetO365ResourceName,TRUE) = '';
   ```
  Set up Power BI by following the instructions at Set up Business Central on-premises for Power BI integration<across-working-with-business-central-in-powerbi>.
 After the solution you choose is in place, ask users to either run the new/modified page or connect to Power BI<across-working-with-powerbi#connect>. They'll only need to do this step once.
## Related information
Synchronize Contacts in Business Central with Contacts in Microsoft Outlook<admin-synchronize-outlook-contacts>
Find free e-learning modules for Business Central here<https://learn.microsoft.com/training/dynamics365/business-central>

Copyright (c) Microsoft Corporation. CC BY 4.0, https://creativecommons.org/licenses/by/4.0/; code samples MIT. From https://learn.microsoft.com/en-us/dynamics365/business-central/admin-contact-sync-setup-onprem, MicrosoftDocs/dynamics365smb-docs at 46907ac (2026-11-19). Changed: includes filled in, links to this site, and for agents shortened without dropping a fact. https://jonas-paprotka.de/docs/admin-contact-sync-setup-onprem/
