Codeunit 9510 "Document Service Management"
Base Application · Microsoft.EServices.EDocument
Across versions
- BC23-24present
- BC2515 procedures changed, 4 procedures added
- BC263 procedures added, 2 procedures removed
- BC27unchanged
- BC282 procedures removed
- BC29unchanged
- BC304 procedures added, 3 procedures removed
Neighbourhood 25 connected objects and pages
Base Application · Microsoft.EServices.EDocument · BC23-30 · source at ea08af5e · facts from BC29
Properties
| Property | Value |
|---|---|
| Permissions | tabledata “Tenant Media” = rimd |
Events published
OnBeforeIsConfigured(var DocumentServiceRec: Record "Document Service")(integration)OnBeforeSetProperties(var DocumentServiceRec: Record "Document Service")(integration)
Event subscriptions
- OnTryAcquireAccessTokenOnOpenInExcel subscribes to Codeunit “System Action Triggers” OnOpenInExcel
- OnCanUploadDocument subscribes to Codeunit “Document Sharing” OnCanUploadDocument
- OnCanUploadSystemDocument subscribes to Codeunit “Document Sharing” OnCanUploadSystemDocument
- OnUploadDocument subscribes to Codeunit “Document Sharing” OnUploadDocument
- OnGetFileContents subscribes to Codeunit “Document Sharing” OnGetFileContents
- OnDeleteDocument subscribes to Codeunit “Document Sharing” OnDeleteDocument
Procedures
TestConnection()SaveFile(SourcePath: Text; TargetName: Text; ConflictBehavior: Enum "Doc. Sharing Conflict Behavior"): Text− BC26RunDocumentServiceSetup(Notification: Notification)GetOneDriveScenario(var DocumentServiceScenario: Record "Document Service Scenario"): BooleanIsConfiguredLegacy(): BooleanIsConfigured(): BooleanIsServiceUri(TargetURI: Text): BooleanSetServiceType(RequestedServiceType: Text)GetServiceType(): TextOpenDocument(TargetURI: Text)GetDefaultFolderName(): Text[250]TryGetDefaultLocation(var Location: Text[250])GetMyBusinessCentralFilesLink(): TextSetClientSecret(ClientSecret: SecretText)+ BC25 − BC25 (internal)TryGetClientSecretFromIsolatedStorage(var ClientSecret: SecretText)+ BC25 − BC25 (internal)OpenInOneDrive(FileName: Text; FileExtension: Text; InStream: InStream)EditInOneDrive(FileName: Text; FileExtension: Text; var TempBlob: Codeunit "Temp Blob"): BooleanEditInOneDrive(FileName: Text; FileExtension: Text; DocSharingConflictBehavior: Enum "Doc. Sharing Conflict Behavior"; var TempBlob: Codeunit "Temp Blob"): BooleanOpenInOneDriveFromMedia(FileName: Text; FileExtension: Text; MediaId: Guid)EditInOneDriveFromMedia(FileName: Text; FileExtension: Text; MediaId: Guid): BooleanTestLocationResolves(Location: Text[250]; AccessToken: SecretText): BooleanΔ BC25 + BC25 − BC28GetTelemetryCategory(): Text(internal)
Plus 43 local procedures.
Triggers
OnRun
Calls
From the extracted call graph of BC29 (graphify-al on the snapshot checkout): calls whose target is known from a declared type or an Object::"Name" argument. Interface dispatch and calls through events are not counted, so the list is not complete.
- Codeunit 1297 “Http Web Request Mgt.” (16 calls:
DeleteDriveItem → SendRequestAndReadTextResponse,GetDefaultLocation → AddHeader,GetDefaultLocation → DisableUI, …) - Codeunit 457 “Environment Information” (8 calls:
GetAccessToken → IsSaaSInfrastructure,GetClientId → IsSaaSInfrastructure,GetClientSecret → IsSaaSInfrastructure, …) - Codeunit 6300 “Azure AD Mgt.” (6 calls:
GetAccessToken → GetAccessTokenAsSecretText,GetAccessToken → GetOnBehalfAccessTokenAsSecretText,GetDefaultLocation → GetOnBehalfAccessTokenAsSecretText, …) - Codeunit 1357 “Privacy Notice Registrations” (4 calls:
GetMyBusinessCentralFilesLink → GetOneDrivePrivacyNoticeId,OnCanUploadDocument → GetOneDrivePrivacyNoticeId,OnCanUploadSystemDocument → GetOneDrivePrivacyNoticeId, …) - Codeunit 1563 “Privacy Notice” (4 calls:
GetMyBusinessCentralFilesLink → ConfirmPrivacyNoticeApproval,OnCanUploadDocument → IsApprovalStateDisagreed,OnCanUploadSystemDocument → IsApprovalStateDisagreed, …) - Codeunit 1293 “Isolated Storage Management” (3 calls:
GetClientSecretFromIsolatedStorage → Get,SetClientSecret → Delete,SetClientSecret → Set) - Codeunit 3060 “Uri” (3 calls:
GetResourceUrl → GetHost,GetResourceUrl → Init,MakeChildrenPathUrl → EscapeDataString) - Codeunit 501 “OAuth2” (3 calls:
GetAccessToken → AcquireAuthorizationCodeTokenFromCache,GetAccessToken → AcquireTokenByAuthorizationCode,InitializeDefaultService → GetDefaultRedirectURL) - Codeunit 9560 “Document Sharing” (3 calls:
InvokeDocumentSharingFlowFromMedia → (object),OpenInOneDrive → Share,ShareWithOneDrive → Share) - Codeunit 2200 “Azure Key Vault” (2 calls:
GetClientId → GetAzureKeyVaultSecret,GetClientSecret → GetAzureKeyVaultSecret) - Codeunit 3061 “Uri Builder” (2 calls:
GetDefaultLocation → GetHost,GetDefaultLocation → Init) - Codeunit 4100 “Temp Blob” (2 calls:
GetFileContent → CreateInStream,GetFileContent → Length) - Codeunit 419 “File Management” (2 calls:
GetSafeDocumentServiceFolderName → GetSafeFileName,OnUploadDocument → GetSafeFileName) - Codeunit 9005 “Url Helper” (2 calls:
GetDefaultLocation → GetGraphUrl,GetGraphDomain → GetGraphUrl) - Codeunit 1266 “Cryptography Management” (1 call:
InvokeDocumentSharingFlowFromMedia → GenerateHash) - Codeunit 8703 “Feature Telemetry” (1 call:
GetAccessToken → LogUsage) - Page 9553 “Document Service Setup” (1 call:
RunDocumentServiceSetup → (object))
Called by
- Page 9553 “Document Service Setup” (5 calls:
AppendSaasChangesToSummaryList → TryGetDefaultLocation,LoadSettings → GetOneDriveScenario,ShowMigrationStep → GetDefaultFolderName, …) - Table 370 “Excel Buffer” (4 calls:
OpenUsingDocumentService → IsConfigured,OpenUsingDocumentService → IsServiceUri,OpenUsingDocumentService → OpenDocument, …) - Codeunit 9660 “Report Layouts Impl.” (3 calls:
EditInOneDrive → EditInOneDrive,OpenInOneDrive → OpenInOneDrive,ShareWithOneDrive → ShareWithOneDrive) - Table 1173 “Document Attachment” (3 calls:
OpenInOneDrive → EditInOneDriveFromMedia,OpenInOneDrive → OpenInOneDriveFromMedia,OpenInOneDrive → ShareWithOneDriveFromMedia) - Table 20405 “Qlty. Inspection Header” (2 calls:
ProcessAdditionalPictureHandling → IsConfigured,ProcessAdditionalPictureHandling → ShareWithOneDrive) - Table 477 “Report Inbox” (2 calls:
OpenInOneDrive → OpenInOneDrive,ShareWithOneDrive → ShareWithOneDrive) - Page extension 9204 “User Settings” (1 call:
SetOneDriveLinkVisibilityAndText → GetTelemetryCategory) - Table 20400 “Qlty. Management Setup” (1 call:
SanityCheckPictureAndCameraSettings → IsConfigured) - Table 5076 “Segment Header” (1 call:
ModifyWordTemplateAttachment → EditInOneDrive)
Ask your agent
Procedure bodies are not stored here (D10). The call sections above are our own, per object, from the BC29 call graph. For a procedure body or the calls of one procedure, ask bc-code-atlas (external, by Stefan Maron, MIT; default corpus w1-28), which the bc-observatory plugin connects: bcatlas_resolve_node(object_type: "codeunit", object_name: "Document Service Management"), then bcatlas_get_procedure_body or bcatlas_get_neighbors on the returned id.