Codeunit 5350 CRM Statistics Job
src/Layers/W1/BaseApp/Integration/D365Sales/CRMStatisticsJob.Codeunit.al16 procedures and triggers, in source order. Copyright (c) Microsoft Corporation. MIT
OnRun line 19, trigger
UpdateStatisticsAndInvoices line 41, local
- 48callsCodeunit 5344 CRM Product Name FULL
- 51callsTable 5330 CRM Connection Setup RegisterConnectionWithName
- 53callsTable 5330 CRM Connection Setup GetDefaultCRMConnection
- 55callsUpdateAccountStatistics
- 57callsUpdateInvoices
- 59callsTable 5330 CRM Connection Setup UnregisterConnectionWithName
UpdateAccountStatistics line 62, local
- 77callsCodeunit 5335 Integration Table Synch. BeginIntegrationSynchJobLoging
- 80callsInitializeCustomerStatisticsSynchronizationTime
- 95callsUpdateCRMAccountStatisticsForCoupledCustomer
- 98callsCodeunit 5335 Integration Table Synch. LogSynchError
- 101writesTable 5331 CRM Integration Record Modify
- 104writesTable 5331 CRM Integration Record Modify
- 105callsCodeunit 5335 Integration Table Synch. IncrementSynchJobCounters
- 116callsAddCustomersWithLedgerEntryActivity
- 117callsAddCustomersWithLinesActivity
- 125callsUpdateCRMAccountStatisticsForCoupledCustomer
- 127callsCodeunit 5335 Integration Table Synch. LogSynchError
- 130writesTable 5331 CRM Integration Record Modify
- 134writesTable 5331 CRM Integration Record Modify
- 136callsCodeunit 5335 Integration Table Synch. IncrementSynchJobCounters
- 143writesTable 5328 CRM Synch Status Modify
- 149callsCodeunit 5335 Integration Table Synch. EndIntegrationSynchJobWithMsg
- 149callsGetAccStatsUpdateFinalMessage
InitializeCustomerStatisticsSynchronizationTime line 152, local
- 157callsCodeunit 5330 CRM Integration Management InitializeCRMSynchStatus
- 161writesTable 5328 CRM Synch Status Modify
AddCustomersWithLinesActivity line 181, local
UpdateInvoices line 198, local
- 204callsCodeunit 5335 Integration Table Synch. BeginIntegrationSynchJobLoging
- 207callsUpdateStatusOfPaidInvoices
- 208callsCodeunit 5335 Integration Table Synch. UpdateSynchJobCounters
- 210callsCodeunit 5335 Integration Table Synch. EndIntegrationSynchJobWithMsg
- 210callsGetInvStatusUpdateFinalMessage
UpdateCRMAccountStatisticsForCoupledCustomer line 213, local
- 224callsTable 5331 CRM Integration Record FindRecordId
- 232callsCreateOrUpdateCRMAccountStatistics
CreateOrUpdateCRMAccountStatistics line 242
- 250callsFindCRMAccountStatistics
- 259callsTable 18 Customer GetTotalAmountLCY
- 261callsTable 18 Customer CalcOverdueBalance
- 263callsTable 18 Customer GetSalesLCY
- 264callsTable 18 Customer GetInvoicedPrepmtAmountLCY
- 265callsCodeunit 5342 CRM Synch. Helper FindNAVLocalCurrencyInCRM
- 266raisesOnCreateOrUpdateCRMAccountStatisticsOnBeforeModify
- 268writesTable 5367 CRM Account Statistics Modify
- 271callsIsCRMAccountStatisticsModified
- 272writesTable 5367 CRM Account Statistics Modify
InitCRMAccountStatistics line 308, local
- 325writesTable 5367 CRM Account Statistics Insert
FindCRMAccountStatistics line 328, local
ModifyCRMAccount line 338, local
- 342callsTable 5331 CRM Integration Record IsModifiedAfterLastSynchonizedCRMRecord
- 343writesTable 5341 CRM Account Modify
- 344callsTable 5331 CRM Integration Record SetLastSynchCRMModifiedOn
- 346writesTable 5341 CRM Account Modify
UpdateStatusOfPaidInvoices line 349
- 358callsCodeunit 5330 CRM Integration Management InitializeCRMSynchStatus
- 369callsUpdateInvoice
- 373callsUpdateInvoice
- 376callsTable 5328 CRM Synch Status UpdateLastUpdateInvoiceEntryNo
UpdateInvoice line 382, local
- 394callsTable 5331 CRM Integration Record FindByRecordID
- 395callsTryGetCRMInvoice
- 397callsCodeunit 5342 CRM Synch. Helper CancelCRMInvoice
- 399callsCodeunit 5342 CRM Synch. Helper UpdateCRMInvoiceStatusFromEntry
DeleteAccountStatisticsOnAfterUncoupleRecord line 438, local
TryDeleteAccountStatistics line 455, local
- 461writesTable 5367 CRM Account Statistics Delete