Codeunit 9510 Document Service Management

Base Application, Microsoft.EServices.EDocument

src/Layers/W1/BaseApp/eServices/EDocument/DocumentServiceManagement.Codeunit.al64 procedures and triggers, in source order. Copyright (c) Microsoft Corporation. MIT

TestConnection line 103

  1. 110callsIsConfiguredLegacy
  2. 114callsSetDocumentService
  3. 119callsSetProperties
  4. 128callsCheckError

SaveFile line 132

  1. 150callsIsConfigured
  2. 158callsSaveStream

RunDocumentServiceSetup line 161

  1. 163runsPage 9553 Document Service Setup

IsOneDriveEnabled line 200, local

  1. 206callsGetOneDriveScenario
  2. 211callsCodeunit 457 Environment Information IsOnPrem

IsOneDriveEnabledForSystem line 221, local

  1. 225callsGetOneDriveScenario

IsOneDriveEnabledOrUsingLegacySetup line 229, local

  1. 235callsIsOneDriveEnabled
  2. 237callsIsConfiguredLegacy
  3. 237callsCodeunit 457 Environment Information IsSaaSInfrastructure

IsConfigured line 240

  1. 246raisesOnBeforeIsConfigured
  2. 249callsIsOneDriveEnabled
  3. 251callsIsConfiguredLegacy

IsServiceUri line 255

  1. 267callsSetDocumentService
  2. 268callsSetProperties
  3. 270callsCheckError

OpenDocument line 298

  1. 305callsIsConfigured
  2. 308callsSetDocumentService
  3. 310callsCheckError

InitializeDefaultService line 313, local

  1. 321callsCodeunit 501 OAuth2 GetDefaultRedirectUrl
  2. 323callsGetLocation
  3. 324callsGetDefaultFolderName

GetDefaultFolderName line 327

  1. 329callsGetSafeDocumentServiceFolderName

GetSafeCompanyName line 332, local

  1. 338callsGetSafeDocumentServiceFolderName
  2. 340callsGetSafeDocumentServiceFolderName
  3. 343callsGetSafeDocumentServiceFolderName

GetSafeDocumentServiceFolderName line 348, local

  1. 352callsCodeunit 419 File Management GetSafeFileName

GetLocation line 360, local

  1. 365callsGetOneDriveScenario
  2. 366callsGetDefaultLocation
  3. 373callsGetDefaultLocation

TryGetDefaultLocation line 377

  1. 379callsGetDefaultLocation

GetDefaultLocation line 382, local

  1. 398callsGetGraphDriveRootUrl
  2. 399callsCodeunit 6300 Azure AD Mgt. GetOnBehalfAccessTokenAsSecretText
  3. 399callsCodeunit 9005 Url Helper GetGraphUrl
  4. 406callsCodeunit 1297 Http Web Request Mgt. Initialize
  5. 407callsCodeunit 1297 Http Web Request Mgt. DisableUI
  6. 408callsCodeunit 1297 Http Web Request Mgt. SetReturnType
  7. 409callsCodeunit 1297 Http Web Request Mgt. AddHeader
  8. 411callsCodeunit 1297 Http Web Request Mgt. SendRequestAndReadTextResponse
  9. 415callsCheckLicenseError
  10. 426callsExtractWebUrlFromJson
  11. 431callsCodeunit 3061 Uri Builder Init
  12. 432callsCodeunit 3061 Uri Builder GetHost

CheckLicenseError line 438, local

  1. 441callsLicenseError
  2. 444callsLicenseError

SetResourceLocation line 447, local

  1. 451callsSetDocumentService
  2. 452callsSetProperties

SetProperties line 470, local

  1. 475raisesOnBeforeSetProperties
  2. 488callsGetAccessToken

GetDriveFolderInfo line 552, local

  1. 561callsInitializeGraphWebRequest
  2. 563callsCodeunit 1297 Http Web Request Mgt. SendRequestAndReadTextResponse
  3. 566callsCheckLicenseError

GetFileContent line 575, local

  1. 587callsResolveItemId
  2. 588callsGetFileDownloadUrl
  3. 589callsInitializeOneDriveWebRequest
  4. 591callsCodeunit 1297 Http Web Request Mgt. SendRequestAndReadResponse
  5. 594callsCheckLicenseError
  6. 598callsCodeunit 4100 Temp Blob Length
  7. 601callsCodeunit 4100 Temp Blob Length
  8. 603callsCodeunit 4100 Temp Blob CreateInStream

GetFileDownloadUrl line 609, local

  1. 621callsGetGraphFileByIdUrl
  2. 623callsInitializeGraphWebRequest
  3. 624callsCodeunit 1297 Http Web Request Mgt. AddHeader
  4. 626callsCodeunit 1297 Http Web Request Mgt. SendRequestAndReadTextResponse
  5. 629callsCheckLicenseError

DeleteDriveItem line 645, local

  1. 655callsResolveItemId
  2. 656callsGetGraphFileByIdUrl
  3. 657callsInitializeGraphWebRequest
  4. 659callsCodeunit 1297 Http Web Request Mgt. SendRequestAndReadTextResponse
  5. 662callsCheckLicenseError

ResolveItemId line 666, local

  1. 683callsGetGraphItemIdUrl
  2. 684callsInitializeGraphWebRequest
  3. 686callsCodeunit 1297 Http Web Request Mgt. SendRequestAndReadTextResponse
  4. 689callsCheckLicenseError

InitializeGraphWebRequest line 708, local

  1. 713callsCodeunit 6300 Azure AD Mgt. GetAccessTokenAsSecretText
  2. 713callsGetGraphDomain
  3. 713callsCodeunit 6300 Azure AD Mgt. GetO365ResourceName
  4. 714callsInitializeWebRequest

InitializeOneDriveWebRequest line 717, local

  1. 722callsCodeunit 6300 Azure AD Mgt. GetOnBehalfAccessTokenAsSecretText
  2. 722callsGetResourceUrl
  3. 723callsInitializeWebRequest

InitializeWebRequest line 726, local

  1. 735callsLicenseError
  2. 737callsCodeunit 1297 Http Web Request Mgt. Initialize
  3. 738callsCodeunit 1297 Http Web Request Mgt. DisableUI
  4. 739callsCodeunit 1297 Http Web Request Mgt. SetMethod
  5. 740callsCodeunit 1297 Http Web Request Mgt. SetReturnType
  6. 741callsCodeunit 1297 Http Web Request Mgt. AddHeader

LicenseError line 744, local

  1. 748callsCodeunit 457 Environment Information IsSaaSInfrastructure

GetDocumentServiceFolder line 754, local

  1. 758callsIsConfiguredLegacy
  2. 765callsGetDefaultFolderName

GetGraphDriveUrl line 768, local

  1. 772callsGetGraphDomain

GetGraphDriveRootUrl line 780, local

  1. 782callsGetGraphDriveUrl

GetGraphDriveItemUrl line 785, local

  1. 787callsGetGraphDriveUrl

GetGraphItemIdUrl line 790, local

  1. 796callsGetGraphDriveRootUrl

GetGraphFileByIdUrl line 799, local

  1. 801callsGetGraphDriveItemUrl

MakeChildrenPathUrl line 804, local

  1. 822callsCodeunit 3060 Uri EscapeDataString

GetGraphDomain line 827, local

  1. 832callsCodeunit 9005 Url Helper GetGraphUrl

SetDocumentService line 839, local

  1. 845callsGetServiceType

TrySaveStreamFromRec line 865, local

  1. 875callsSetDocumentService
  2. 878callsSetProperties
  3. 884callsSetResourceLocation
  4. 886callsSetProperties
  5. 891callsCheckError

SaveStream line 902, local

  1. 909callsIsOneDriveEnabled
  2. 910callsInitTempDocumentServiceRecord
  3. 911callsTrySaveStreamFromRec
  4. 913callsTrySaveStreamFromRec

GetAccessToken line 916, local

  1. 932callsCodeunit 8703 Feature Telemetry LogUsage
  2. 935callsGetResourceUrl
  3. 936callsCodeunit 457 Environment Information IsSaaSInfrastructure
  4. 937callsCodeunit 6300 Azure AD Mgt. GetOnBehalfAccessTokenAsSecretText
  5. 940callsCodeunit 6300 Azure AD Mgt. GetAccessTokenAsSecretText
  6. 950callsGetScopes
  7. 951callsGetClientId
  8. 952callsGetClientSecret
  9. 953callsGetRedirectURL
  10. 956callsCodeunit 501 OAuth2 AcquireAuthorizationCodeTokenFromCache
  11. 961callsCodeunit 501 OAuth2 AcquireTokenByAuthorizationCode

GetClientId line 978, local

  1. 986callsCodeunit 457 Environment Information IsSaaSInfrastructure
  2. 987callsCodeunit 2200 Azure Key Vault GetAzureKeyVaultSecret
  3. 996raisesOnGetSharePointClientId

GetClientSecret line 1006, local

  1. 1015callsCodeunit 457 Environment Information IsSaaSInfrastructure
  2. 1016callsCodeunit 2200 Azure Key Vault GetAzureKeyVaultSecret
  3. 1024callsGetClientSecretFromIsolatedStorage
  4. 1031raisesOnGetSharePointClientSecret

GetRedirectURL line 1042, local

  1. 1048callsCodeunit 457 Environment Information IsSaaSInfrastructure
  2. 1055raisesOnGetSharePointRedirectURL

GetScopes line 1060, local

  1. 1062callsGetResourceUrl

GetResourceUrl line 1067, local

  1. 1071callsCodeunit 3060 Uri Init
  2. 1072callsCodeunit 3060 Uri GetHost

SetClientSecret line 1076, internal

  1. 1086callsCodeunit 1293 Isolated Storage Management Delete
  2. 1092writesTable 2000000114 Document Service Modify
  3. 1095callsCodeunit 1293 Isolated Storage Management Set

GetClientSecretFromIsolatedStorage line 1099, local

  1. 1115callsCodeunit 1293 Isolated Storage Management Get

TryGetClientSecretFromIsolatedStorage line 1121, internal

  1. 1123callsGetClientSecretFromIsolatedStorage

OnTryAcquireAccessTokenOnOpenInExcel line 1128, local

  1. 1137callsGetAccessToken
  2. 1142callsGetDefaultLocation
  3. 1144callsGetAccessToken
  4. 1147callsGetDefaultFolderName
  5. 1147callsGetSafeCompanyName

OpenInOneDrive line 1154

  1. 1158callsCodeunit 9560 Document Sharing Share

EditInOneDrive line 1166

  1. 1181callsCodeunit 4100 Temp Blob CreateInStream
  2. 1184callsCodeunit 4100 Temp Blob CreateInStream
  3. 1186callsCodeunit 1266 Cryptography Management GenerateHash
  4. 1188writesTable 9560 Document Sharing Insert
  5. 1189callsCodeunit 9560 Document Sharing Share
  6. 1191callsCodeunit 4100 Temp Blob CreateOutStream
  7. 1194callsCodeunit 4100 Temp Blob CreateInStream
  8. 1196callsCodeunit 1266 Cryptography Management GenerateHash

OpenInOneDriveFromMedia line 1199

  1. 1203callsInvokeDocumentSharingFlowFromMedia

EditInOneDriveFromMedia line 1206

  1. 1210callsInvokeDocumentSharingFlowFromMedia

ShareWithOneDrive line 1213

  1. 1217callsCodeunit 9560 Document Sharing Share

ShareWithOneDriveFromMedia line 1220

  1. 1224callsInvokeDocumentSharingFlowFromMedia

InvokeDocumentSharingFlowFromMedia line 1227, local

  1. 1237callsSetFileNameAndExtension
  2. 1243writesTable 9560 Document Sharing Insert
  3. 1245callsCodeunit 1266 Cryptography Management GenerateHash
  4. 1246runsCodeunit 9560 Document Sharing
  5. 1249callsCodeunit 1266 Cryptography Management GenerateHash
  6. 1254writesTable 2000000184 Tenant Media Modify

TestLocationResolves line 1261

  1. 1265callsSetDocumentService
  2. 1268callsGetDefaultFolderName

InitTempDocumentServiceRecord line 1278, local

  1. 1286callsIsOneDriveEnabled
  2. 1288callsIsOneDriveEnabledForSystem
  3. 1290callsCodeunit 457 Environment Information IsSaaSInfrastructure
  4. 1292callsInitializeDefaultService
  5. 1301callsGetSafeCompanyName
  6. 1303callsSetResourceLocation

OnCanUploadDocument line 1319, local

  1. 1327callsCodeunit 1563 Privacy Notice IsApprovalStateDisagreed
  2. 1327callsCodeunit 1357 Privacy Notice Registrations GetOneDrivePrivacyNoticeId
  3. 1330callsIsOneDriveEnabledOrUsingLegacySetup

OnCanUploadSystemDocument line 1334, local

  1. 1342callsCodeunit 1563 Privacy Notice IsApprovalStateDisagreed
  2. 1342callsCodeunit 1357 Privacy Notice Registrations GetOneDrivePrivacyNoticeId
  3. 1345callsIsOneDriveEnabledForSystem

OnUploadDocument line 1349, local

  1. 1366callsIsOneDriveEnabledOrUsingLegacySetup
  2. 1370callsIsOneDriveEnabledForSystem
  3. 1373callsCodeunit 1563 Privacy Notice ConfirmPrivacyNoticeApproval
  4. 1373callsCodeunit 1357 Privacy Notice Registrations GetOneDrivePrivacyNoticeId
  5. 1376callsCodeunit 419 File Management GetSafeFileName
  6. 1383callsInitTempDocumentServiceRecord
  7. 1389callsTrySaveStreamFromRec
  8. 1391callsTrySaveStreamFromRec
  9. 1396callsTrySaveStreamFromRec
  10. 1405callsTrySaveStreamFromRec
  11. 1407callsTrySaveStreamFromRec
  12. 1409callsTrySaveStreamFromRec
  13. 1426writesTable 9560 Document Sharing Modify

OnGetFileContents line 1432, local

  1. 1436callsGetFileContent

OnDeleteDocument line 1440, local

  1. 1444callsDeleteDriveItem