---
title: "Codeunit 9510 Document Service Management"
author: "Jonas Paprotka"
url: https://jonas-paprotka.de/ref/codeunit/9510-document-service-management/
type: codeunit
id: 9510
name: "Document Service Management"
app: "Base Application"
namespace: Microsoft.EServices.EDocument
versions: "17-28"
build: 28.5.54151.54365
source: "https://jonas-paprotka.de/ref/codeunit/9510-document-service-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 9510 Document Service Management

Jonas Paprotka, https://jonas-paprotka.de/ref/codeunit/9510-document-service-management/

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

## Procedures

| Name | Parameters | Returns | Access | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- | --- |
| TestConnection | () | - | public | 17-28 | - | - |
| SaveFile | (Text, Text, Boolean) | Text | public | 17-21 | Pending 19.0 | Use SaveFile(SourcePath; TargetName; ConflictBehavior) instead |
| IsConfigured | () | Boolean | public | 17-28 | - | - |
| IsServiceUri | (Text) | Boolean | public | 17-28 | - | - |
| SetServiceType | (Text) | - | public | 17-28 | - | - |
| GetServiceType | () | Text | public | 17-28 | - | - |
| OpenDocument | (Text) | - | public | 17-28 | - | - |
| SetClientSecret | (Text) | - | internal | 17-24 | - | - |
| TryGetClientSecretFromIsolatedStorage | (var Text) | Boolean | internal | 17-24 | - | - |
| SaveFile | (Text, Text, Enum Doc. Service Conflict Behavior) | Text | public | 19-25 | Pending 23.0 | Replaced with an overload that uses "Doc. Sharing Conflict Behavior" enum from System Application. |
| GetMyBusinessCentralFilesLink | () | Text | public | 19-28 | - | - |
| OpenInOneDrive | (Text, Text, InStream) | - | public | 19-28 | - | - |
| OpenInOneDriveFromMedia | (Text, Text, Guid) | - | public | 19-28 | - | - |
| GetTelemetryCategory | () | Text | internal | 19-28 | - | - |
| ShareWithOneDrive | (Text, Text, InStream) | - | public | 20-28 | - | - |
| ShareWithOneDriveFromMedia | (Text, Text, Guid) | - | public | 20-28 | - | - |
| RunDocumentServiceSetup | (Notification) | - | public | 21-28 | - | - |
| GetOneDriveScenario | (var Record Document Service Scenario) | Boolean | public | 21-28 | - | - |
| IsConfiguredLegacy | () | Boolean | public | 21-28 | - | - |
| GetDefaultFolderName | () | Text[250] | public | 21-28 | - | - |
| TryGetDefaultLocation | (var Text[250]) | Boolean | public | 21-28 | - | - |
| TestLocationResolves | (Text[250], Text) | Boolean | public | 21-27 | Pending 25.0 | Replaced by TestLocationResolves(Location: Text[250]; AccessToken: SecretText) |
| SaveFile | (Text, Text, Enum Doc. Sharing Conflict Behavior) | Text | public | 22-28 | - | - |
| EditInOneDrive | (Text, Text, var Codeunit Temp Blob) | Boolean | public | 22-28 | - | - |
| EditInOneDrive | (Text, Text, Enum Doc. Sharing Conflict Behavior, var Codeunit Temp Blob) | Boolean | public | 22-28 | - | - |
| EditInOneDriveFromMedia | (Text, Text, Guid) | Boolean | public | 22-28 | - | - |
| SetClientSecret | (SecretText) | - | internal | 25-28 | - | - |
| TryGetClientSecretFromIsolatedStorage | (var SecretText) | Boolean | internal | 25-28 | - | - |
| TestLocationResolves | (Text[250], SecretText) | Boolean | public | 25-28 | - | - |

## Events

| Kind | Name | Parameters | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- |
| Integration event | OnGetSharePointClientId | (var Text) | 17-28 | - | - |
| Integration event | OnGetSharePointClientSecret | (var Text) | 17-28 | - | - |
| Integration event | OnGetSharePointRedirectURL | (var Text) | 17-28 | - | - |
| Integration event | OnBeforeIsConfigured | (var Record Document Service) | 20-28 | - | - |
| Integration event | OnBeforeSetProperties | (var Record Document Service) | 20-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.
