---
title: "Codeunit 6700 O365 Sync. Management"
author: "Jonas Paprotka"
url: https://jonas-paprotka.de/ref/codeunit/6700-o365-sync-management/
type: codeunit
id: 6700
name: "O365 Sync. Management"
app: "Base Application"
versions: "17-28"
build: 28.5.54151.54365
obsolete: "Pending 28.0"
source: "https://jonas-paprotka.de/ref/codeunit/6700-o365-sync-management/source/29/"
checked: 2026-09-20
subject: "Microsoft Dynamics 365 Business Central"
license: "Content © 2026 Jonas Paprotka. Quote freely with attribution and a link."
---

# Codeunit 6700 O365 Sync. Management

Jonas Paprotka, https://jonas-paprotka.de/ref/codeunit/6700-o365-sync-management/

| | |
| --- | --- |
| App | Base Application |
| Versions | 17-28 |
| Obsolete | Pending 28.0, seen from 28. Contact sync has been moved to the assisted setup experience with the new Graph-based implementation. |
| Source file | O365SyncManagement.Codeunit.al |

## Procedures

| Name | Parameters | Returns | Access | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- | --- |
| GetBookingMailboxes | (Record Booking Sync, var Record Booking Mailbox, Text) | Boolean | public | 17-28 | - | - |
| CreateExchangeConnection | (var Record Exchange Sync) | Boolean | public | 17-28 | - | - |
| IsO365Setup | (Boolean) | Boolean | public | 17-28 | - | - |
| OpenSetupWindow | () | Boolean | public | 17-28 | - | - |
| SyncBookingCustomers | (var Record Booking Sync) | - | public | 17-28 | Pending 28.0 | Deprecated not in use -Booking sync setup |
| SyncBookingServices | (var Record Booking Sync) | - | public | 17-28 | - | - |
| SyncExchangeContacts | (Record Exchange Sync, Boolean) | - | public | 17-28 | - | - |
| LogActivityFailed | (Variant, Code[50], Text, Text) | - | public | 17-28 | - | - |
| BuildBookingsConnectionString | (var Record Booking Sync) | Text | public | 17-27 | Pending 25.0 | Replaced by BuildBookingsConnectionStringAsSecretText |
| BuildExchangeConnectionString | (var Record Exchange Sync) | Text | public | 17-27 | Pending 25.0 | Replaced by BuildExchangeConnectionStringAsSecretText |
| RegisterBookingsConnection | (Record Booking Sync) | - | public | 17-28 | - | - |
| RegisterExchangeConnection | (Record Exchange Sync) | - | public | 17-28 | - | - |
| TraceCategory | () | Text | public | 17-28 | - | - |
| ValidateExchangeConnection | (Text[250], var Record Exchange Sync) | Boolean | public | 17-28 | - | - |
| ShowProgress | (Text) | - | public | 17-28 | - | - |
| CloseProgress | () | - | public | 17-28 | - | - |
| BuildBookingsConnectionStringAsSecretText | (var Record Booking Sync) | SecretText | public | 25-28 | - | - |
| BuildExchangeConnectionStringAsSecretText | (var Record Exchange Sync) | SecretText | public | 25-28 | - | - |

## Events

| Kind | Name | Parameters | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- |
| Integration event | OnBeforeOnRun | (var Boolean) | 17-28 | - | - |

## Source

Symbols: Microsoft.BaseApplication.symbols.437dbf0e-84ff-417a-965d-ed2bb9650972, https://dynamicssmb2.pkgs.visualstudio.com/DynamicsBCPublicFeeds/_packaging/MSSymbols/nuget/v3/index.json, highest build per major on 2026-09-20.
AL source 29: https://github.com/microsoft/BCApps, MIT, releases/29.x at a66254c3b8b5bb1cea290dc8f9d097aec4381153.

Jonas Paprotka, 2026-09-20.
