microsoft / ALAppExtensions

Repository for collaboration on Microsoft AL application add-on and localization extensions for Microsoft Dynamics 365 Business Central.
MIT License
768 stars 610 forks source link

[Event Change Request] Codeunit 448 Job Queue Dispatcher - procedure CalcNextRunTimeForRecurringJob - Event OnCalcNextRunTimeForRecurringJobOnAfterCalcNewRunDateTime #26917

Open MH1612 opened 1 month ago

MH1612 commented 1 month ago

Describe the request

We would like add StartingDateTime added to the following events.

Original:

Codeunit 448 Job Queue Dispatcher - procedure CalcNextRunTimeForRecurringJob - Event OnCalcNextRunTimeForRecurringJobOnAfterCalcNewRunDateTime

OnCalcNextRunTimeForRecurringJobOnAfterCalcNewRunDateTime(JobQueueEntry, NewRunDateTime, IsHandled);

    [IntegrationEvent(false, false)]
    local procedure OnCalcNextRunTimeForRecurringJobOnAfterCalcNewRunDateTime(var JobQueueEntry: Record "Job Queue Entry"; var NewRunDateTime: DateTime; var IsHandled: Boolean)
    begin
    end;

Change:

OnCalcNextRunTimeForRecurringJobOnAfterCalcNewRunDateTime(JobQueueEntry, NewRunDateTime, IsHandled, StartingDateTime);

    [IntegrationEvent(false, false)]
    local procedure OnCalcNextRunTimeForRecurringJobOnAfterCalcNewRunDateTime(var JobQueueEntry: Record "Job Queue Entry"; var NewRunDateTime: DateTime; var IsHandled: Boolean; StartingDateTime: DateTime)
    begin
    end;

Additional context

Calc NewRunTime with own logic Internal work item: AB#542998

azure-boards[bot] commented 1 month ago

✅ Successfully linked to Azure Boards work item(s):