---
title: "Codeunit 1410 Doc. Exch. Service Mgt."
author: "Jonas Paprotka"
url: https://jonas-paprotka.de/ref/codeunit/1410-doc-exch-service-mgt/
type: codeunit
id: 1410
name: "Doc. Exch. Service Mgt."
app: "Base Application"
namespace: Microsoft.EServices.EDocument
versions: "17-28"
build: 28.5.54151.54365
source: "https://jonas-paprotka.de/ref/codeunit/1410-doc-exch-service-mgt/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 1410 Doc. Exch. Service Mgt.

Jonas Paprotka, https://jonas-paprotka.de/ref/codeunit/1410-doc-exch-service-mgt/

| | |
| --- | --- |
| App | Base Application |
| Namespace | Microsoft.EServices.EDocument |
| Versions | 17-28 |
| Source file | eServices/EDocument/DocExchServiceMgt.Codeunit.al |

## Procedures

| Name | Parameters | Returns | Access | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- | --- |
| SetURLsToDefault | (var Record Doc. Exch. Service Setup) | - | public | 17-28 | - | - |
| CheckConnection | () | - | public | 17-28 | - | - |
| SendUBLDocument | (Variant, Text) | Text | public | 17-22 | Pending 20.0 | Replaced by SendUBLDocument with TempBlob parameter. |
| SendDocument | (Variant, Text) | Text | public | 17-22 | Pending 20.0 | Replaced by SendDocument with TempBlob parameter. |
| GetDocumentStatus | (RecordId, Text[50], Text[50]) | Text | public | 17-28 | - | - |
| GetDocumentMetadata | (RecordId, Text[50], var Text) | Boolean | public | 17-28 | - | - |
| ReceiveDocuments | (RecordId) | - | public | 17-28 | - | - |
| CheckCredentials | () | - | public | 17-28 | - | - |
| CheckServiceEnabled | () | - | public | 17-28 | - | - |
| EnableTraceLog | (Boolean) | - | public | 17-28 | - | - |
| HandleVANRegisterServiceConnection | (var Record Service Connection) | - | public | 17-28 | - | - |
| GetExternalDocURL | (Text) | Text | public | 17-28 | - | - |
| VerifyPrerequisites | (Boolean) | Boolean | public | 17-28 | - | - |
| IsSandbox | (var Record Doc. Exch. Service Setup) | Boolean | public | 19-28 | - | - |
| SetURLsToDefault | (var Record Doc. Exch. Service Setup, Boolean) | - | public | 19-28 | - | - |
| GetAppUrl | (var Record Doc. Exch. Service Setup) | Text | public | 19-28 | - | - |
| GetDefaultRedirectUrl | () | Text | public | 19-28 | - | - |
| SetDefaultRedirectUrl | (var Record Doc. Exch. Service Setup) | - | public | 19-28 | - | - |
| SendRenewTokenNotification | () | - | public | 19-28 | - | - |
| RecallActivateAppNotification | () | - | public | 19-28 | - | - |
| SendActivateAppNotification | () | - | public | 19-28 | - | - |
| ActivateApp | (var Notification) | - | public | 19-28 | - | - |
| RenewToken | (var Notification) | - | public | 19-28 | - | - |
| RenewToken | (Boolean) | - | public | 19-28 | - | - |
| HasPredefinedOAuth2Params | () | Boolean | public | 19-28 | - | - |
| GetClientId | (Boolean) | Text | public | 19-28 | - | - |
| GetClientSecret | (Boolean) | Text | public | 19-27 | Pending 25.0 | Replaced by GetClientSecretAsSecretText |
| AcquireAccessTokenByAuthorizationCode | (Boolean) | - | public | 19-28 | - | - |
| AcquireAccessTokenByRefreshToken | () | - | public | 19-28 | - | - |
| SendUBLDocument | (Variant, var Codeunit Temp Blob) | Text | public | 20-28 | - | - |
| SendDocument | (Variant, var Codeunit Temp Blob) | Text | public | 20-28 | - | - |
| GetFeatureTelemetryName | () | Text | internal | 21-28 | - | - |
| GetServiceSetUp | (var Record Doc. Exch. Service Setup) | - | public | 22-28 | - | - |
| LogActivitySucceeded | (RecordId, Text, Text) | - | public | 22-28 | - | - |
| LogActivityFailed | (RecordId, Text, Text) | - | public | 22-28 | - | - |
| LogActivityFailedAndError | (RecordId, Text, Text) | - | public | 22-28 | - | - |
| GetClientSecretAsSecretText | (Boolean) | SecretText | public | 25-28 | - | - |
| GetPostSalesInvURL | () | Text | public | 25-28 | - | - |
| GetPostSalesCrMemoURL | () | Text | public | 25-28 | - | - |

## Events

| Kind | Name | Parameters | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- |
| Integration event | OnAfterIncomingDocReceivedFromDocExch | (var Record Incoming Document) | 17-28 | - | - |
| Integration event | OnGetClientId | (var Text) | 19-28 | - | - |
| Integration event | OnGetClientSecret | (var Text) | 19-28 | - | - |
| Integration event | OnBeforeSendActivateAppNotification | (var Boolean) | 21-28 | - | - |
| Integration event | OnBeforeSetURLsToDefault | (var Record Doc. Exch. Service Setup, Boolean, var Boolean) | 21-28 | - | - |
| Integration event | OnBeforeVerifyPrerequisites | (Boolean, var Boolean, var Boolean) | 21-28 | - | - |
| Integration event | OnBeforeCheckDocumentStatus | (RecordRef, var Boolean) | 25-28 | - | - |
| Integration event | OnBeforeGetPostSalesURL | (RecordRef, var Text) | 25-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.
