Codeunit 5350 CRM Statistics Job

Base Application, Microsoft.Integration.D365Sales

Source AL, 475 lines

src/Layers/W1/BaseApp/Integration/D365Sales/CRMStatisticsJob.Codeunit.allines 15 to 30 of 475, Copyright (c) Microsoft Corporation. MIT

codeunit 5350 "CRM Statistics Job"{    TableNo = "Job Queue Entry";    trigger OnRun()    begin        UpdateStatisticsAndInvoices(Rec.GetLastLogEntryNo());    end;    var        CRMProductName: Codeunit "CRM Product Name";        ConnectionNotEnabledErr: Label 'The %1 connection is not enabled.', Comment = '%1 = CRM product name';        RecordFoundTxt: Label '%1 %2 was not found.', Comment = '%1 is a table name, e.g. Customer, %2 is a number, e.g. Customer 12344 was not found.';        AccountStatisticsUpdatedMsg: Label 'Updated account statistics. ';        InvoiceStatusUpdatedMsg: Label 'Updated payment status of sales invoices.';

All 475 lines

Events 2 in 29

[IntegrationEvent] OnAfterAddCustomersWithLinesActivity(StartDateTime: DateTime; var CustomerNumbers: List of [Code[20]])new in 25
[IntegrationEvent] OnCreateOrUpdateCRMAccountStatisticsOnBeforeModify(var CRMAccountStatistics: Record "CRM Account Statistics"; var Customer: Record Customer)new in 25

Public procedures 4 in 29

CreateOrUpdateCRMAccountStatistics(Customer: Record Customer; var CRMAccount: Record "CRM Account"): Integer17-29
GetAccStatsUpdateFinalMessage(): Text17-29
GetInvStatusUpdateFinalMessage(): Text17-29
UpdateStatusOfPaidInvoices(CustomerNo: Code[20]): Integer17-29

Changes 2 in 25

List17181920212223242526272829
Events2
[IntegrationEvent] OnAfterAddCustomersWithLinesActivity(StartDateTime: DateTime; var CustomerNumbers: List of [Code[20]])new in 25
added
[IntegrationEvent] OnCreateOrUpdateCRMAccountStatisticsOnBeforeModify(var CRMAccountStatistics: Record "CRM Account Statistics"; var Customer: Record Customer)new in 25
added

All 2 changes in 17-29