Skip to content

[Event Change Request] table 472 "Job Queue Entry" - OnReuseExisingJobFromId #29220

Description

@RZ440

Why do you need this change?

The Event Publisher OnReuseExsistingJobFromID should be extended with the ExecutionDateTime Variable.
This allows the ExectutionDateTime to be also used when changing other entries.

Describe the request

Hello,
can you please add the variable ExecutionDateTime to the event OnReuseExisingJobFromId?

 procedure ReuseExistingJobFromID(JobID: Guid; ExecutionDateTime: DateTime): Boolean
    begin
        if Get(JobID) then begin
            Rec.CalcFields(Scheduled);
            if (not (Rec.Status in [Status::Ready, Status::"In Process"])) or (not Rec.Scheduled) then begin
                Rec."Earliest Start Date/Time" := ExecutionDateTime;
                Rec.Status := Rec.Status::"On Hold";
                SetStatus(Status::Ready);
            end;

            OnReuseExisingJobFromId(Rec, ExecutionDateTime);

            exit(true);
        end;

        exit(false);
    end;
    [InternalEvent(false)]
    local procedure OnReuseExisingJobFromId(var JobQueueEntry: Record "Job Queue Entry"; ExecutionDateTime: DateTime)
    begin
    end;

Internal work item: AB#608814

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions