Codeunit 102 Import Consolidation from API

Base Application, Microsoft.Finance.Consolidation

src/Layers/W1/BaseApp/Finance/Consolidation/ImportConsolidationFromAPI.Codeunit.al38 procedures and triggers, in source order. Copyright (c) Microsoft Corporation. MIT

GetPrivacyConsentChoice line 79, internal

  1. 87callsPage 109 Privacy Statement GetConsentState

AcquireTokenAndStoreInIsolatedStorage line 95, internal

  1. 100callsSetAPIParameters
  2. 101callsIsolatedStorageKey
  3. 102callsGetToken
  4. 102callsCurrentAuthorityUrl
  5. 103callsGetTokenLength

IsStoredTokenValidForBusinessUnit line 115, internal

  1. 121callsIsolatedStorageKey
  2. 121callsGuidToText
  3. 125callsHttpGetText
  4. 125callsTestEndpointForBusinessUnit

CurrentAuthorityUrl line 131, local

  1. 133callsIsPPE

GetCurrencyFactorFromBusinessUnit line 143, internal

  1. 152callsSetAPIParameters
  2. 153callsIsStoredTokenValidForBusinessUnit
  3. 154callsAcquireTokenAndStoreInIsolatedStorage
  4. 157callsFormatDateForAPICall
  5. 158callsHttpGetTextWithStatusHandling
  6. 158callsAPIV2RootEndpointForBusinessUnit
  7. 159callsParseCount
  8. 162callsParseDataSingle

SelectCompanyForBusinessUnit line 172, internal

  1. 180callsAcquireTokenAndStoreInIsolatedStorage
  2. 181callsHttpGet
  3. 181callsCompaniesEndpointForBusinessUnit
  4. 188writesTable 2000000006 Company Insert
  5. 190callsPage 244 Company Selector SetCompanies
  6. 195callsPage 244 Company Selector GetSelectedCompany
  7. 200validatesTable 220 Business Unit External Company Name
  8. 201callsSetBusinessUnitAPIBaseUrl
  9. 202callsVerifySubsidiaryConsent
  10. 209callsCodeunit 8703 Feature Telemetry LogUptake
  11. 209callsGetFeatureTelemetryName
  12. 210callsTable 1833 Consolidation Setup GetTelemetryCategory

SetBusinessUnitAPIBaseUrl line 213, local

  1. 215callsCompaniesEndpointForBusinessUnit
  2. 215callsGuidToText

GetAADTenantIdFromBCUrl line 218, internal

  1. 223callsCodeunit 3960 Regex Match
  2. 225callsTable 3965 Matches ReadValue

ValidateBCUrl line 228, internal

  1. 234callsGetAADTenantIdFromBCUrl
  2. 237callsIsPPE

CompaniesEndpointForBusinessUnit line 252, local

  1. 254callsAPIV2RootEndpointForBusinessUnit

TestEndpointForBusinessUnit line 257, local

  1. 259callsCompaniesEndpointForBusinessUnit

SetAPIParameters line 272, local

  1. 274callsGuidToText

GetToken line 278, local

  1. 292callsIsPPE
  2. 293callsTable 1833 Consolidation Setup GetTelemetryCategory
  3. 294callsCodeunit 457 Environment Information IsSaaS
  4. 295callsTable 1833 Consolidation Setup GetTelemetryCategory
  5. 298callsCodeunit 2200 Azure Key Vault GetAzureKeyVaultSecret
  6. 299callsTable 1833 Consolidation Setup GetTelemetryCategory
  7. 307callsCodeunit 2200 Azure Key Vault GetAzureKeyVaultSecret
  8. 308callsTable 1833 Consolidation Setup GetTelemetryCategory
  9. 312callsCodeunit 2200 Azure Key Vault GetAzureKeyVaultSecret
  10. 313callsTable 1833 Consolidation Setup GetTelemetryCategory
  11. 316callsCodeunit 2200 Azure Key Vault GetAzureKeyVaultCertificate
  12. 317callsTable 1833 Consolidation Setup GetTelemetryCategory
  13. 323callsCodeunit 501 OAuth2 AcquireAuthorizationCodeTokenFromCache
  14. 326callsCodeunit 501 OAuth2 AcquireTokensByAuthorizationCode
  15. 329callsCodeunit 501 OAuth2 AcquireAuthorizationCodeTokenFromCacheWithCertificate
  16. 332callsCodeunit 501 OAuth2 AcquireTokensByAuthorizationCodeWithCertificate

HttpGetTextWithTokenInIsolatedStorage line 337, local

  1. 343callsIsolatedStorageKey
  2. 346callsHttpGetText
  3. 348callsTable 1833 Consolidation Setup GetTelemetryCategory
  4. 349callsAcquireTokenAndStoreInIsolatedStorage
  5. 351callsHttpGetText
  6. 353callsTable 1833 Consolidation Setup GetTelemetryCategory

HttpGetText line 358, local

  1. 375callsLogRequestIfLoggingEnabled

LogRequestIfLoggingEnabled line 379, local

  1. 388writesTable 1834 Consolidation Log Entry Insert
  2. 391writesTable 1834 Consolidation Log Entry Modify
  3. 395writesTable 1834 Consolidation Log Entry Modify

HttpGetTextWithStatusHandling line 399, local

  1. 405callsHttpGetTextWithTokenInIsolatedStorage

ImportConsolidationDataForBusinessUnit line 426

  1. 438callsTable 1833 Consolidation Setup GetOrCreateWithDefaults
  2. 439callsTable 141 Bus. Unit Consolidation Data GetConsolidate
  3. 446callsTable 1833 Consolidation Setup GetTelemetryCategory
  4. 447callsSetAPIParameters
  5. 448callsSetBusinessUnitAPIBaseUrl
  6. 454callsCodeunit 432 Consolidate SetDocNo
  7. 456callsCodeunit 432 Consolidate SetGenJnlBatch
  8. 461callsCodeunit 432 Consolidate SetSelectedDim
  9. 464callsVerifySubsidiaryConsent
  10. 471callsGetAndSetPostingGLAccounts
  11. 472callsGetAndSetGLEntriesForGLAccountsToConsolidate
  12. 474callsGetAndSetCurrencyExchangeRates
  13. 476callsCodeunit 432 Consolidate SetGlobals
  14. 477callsCodeunit 432 Consolidate UpdateGLEntryDimSetID
  15. 478callsTable 141 Bus. Unit Consolidation Data SetConsolidate

VerifySubsidiaryConsent line 488, local

  1. 492callsGetGLSetup

GetAndSetCurrencyExchangeRates line 502, local

  1. 536callsGetCurrencyExchangeRates
  2. 547callsCodeunit 432 Consolidate InsertExchRate

GetAndSetGLEntriesForGLAccountsToConsolidate line 552, local

  1. 566callsFormatDateForAPICall
  2. 566callsFormatDateForAPICall
  3. 568callsFormatDateForAPICall
  4. 568callsFormatDateForAPICall
  5. 570callsCodeunit 432 Consolidate GetGLAccounts
  6. 579callsGLAccountToFilter
  7. 582callsGetAndSetGLEntries
  8. 589callsGetAndSetGLEntries

GetAndSetGLEntries line 592, local

  1. 605callsGetGLEntries
  2. 611callsGetDimensionsFromOtherCompanyMatchingSelected
  3. 628callsCodeunit 432 Consolidate InsertGLEntry
  4. 648callsCodeunit 432 Consolidate InsertEntryDim

GetDimensionsFromOtherCompanyMatchingSelected line 653, local

  1. 657callsGetDimensionsRequestFilter
  2. 658callsGetDimensionsFromOtherCompany
  3. 659callsGetDimensionsRequestFilter
  4. 660callsGetDimensionsFromOtherCompany

GetDimensionsFromOtherCompany line 680, local

  1. 686callsGetDimensions
  2. 691writesTable 348 Dimension Insert

GLAccountToFilter line 701, local

  1. 707callsCodeunit 10 Type Helper UrlEncode

GetAndSetPostingGLAccounts line 711, local

  1. 722callsGetAccountingPeriods
  2. 725writesTable 50 Accounting Period Insert
  3. 730callsGetPostingGLAccounts
  4. 734callsCheckNoPostingsAtClosingDates
  5. 736callsCodeunit 10 Type Helper GetOptionNo
  6. 741callsCodeunit 432 Consolidate InsertGLAccount

CheckNoPostingsAtClosingDates line 745, local

  1. 754callsGetGLEntriesCountAtDate

GetGLSetup line 760, local

  1. 765raisesOnBeforeGetGLSetupIsHandled
  2. 767callsParseDataSingle
  3. 768callsHttpGetSingle

GetCurrencyExchangeRates line 771, local

  1. 776raisesOnBeforeGetCurrencyExchangeRatesIsHandled
  2. 778callsParseData
  3. 779callsHttpGet
  4. 779callsFormatDateForAPICall

GetGLEntries line 782, local

  1. 787raisesOnBeforeGetGLEntriesIsHandled
  2. 789callsParseData
  3. 790callsHttpGet

GetDimensions line 793, local

  1. 798raisesOnBeforeGetDimensionsIsHandled
  2. 800callsParseData
  3. 801callsHttpGet

GetGLEntriesCountAtDate line 804, local

  1. 809raisesOnBeforeGetGLEntriesCountAtDateIsHandled
  2. 811callsParseCount
  3. 812callsHttpGetCount
  4. 812callsGLAccountToFilter
  5. 812callsFormatDateForAPICall

GetPostingGLAccounts line 815, local

  1. 820raisesOnBeforeGetPostingGLAccountsIsHandled
  2. 822callsParseData
  3. 823callsHttpGet

GetAccountingPeriods line 826, local

  1. 831raisesOnBeforeGetAccountingPeriodsIsHandled
  2. 833callsParseData
  3. 834callsHttpGet
  4. 834callsFormatDateForAPICall
  5. 834callsFormatDateForAPICall

ParseDataSingle line 847, local

  1. 852callsParseData

HttpGetCount line 869, local

  1. 871callsParseCount
  2. 871callsHttpGetTextWithStatusHandling

HttpGet line 879, local

  1. 887callsHttpGetCount
  2. 891callsParseData
  3. 891callsHttpGetTextWithStatusHandling
  4. 898callsParseData
  5. 898callsHttpGetTextWithStatusHandling

HttpGetSingle line 901, local

  1. 903callsParseDataSingle
  2. 903callsHttpGetTextWithStatusHandling