Codeunit 454 Job Queue - Send Notification

Base Application, System.Threading

Source AL, 252 lines

src/Layers/W1/BaseApp/Modules/System/JobQueue/JobQueueSendNotification.Codeunit.allines 7 to 22 of 252, Copyright (c) Microsoft Corporation. MIT

codeunit 454 "Job Queue - Send Notification"{    TableNo = "Job Queue Entry";    trigger OnRun()    var        RecordLink: Record "Record Link";        IsHandled: Boolean;    begin        IsHandled := false;        OnBeforeRun(Rec, RecordLink, IsHandled);        if not IsHandled then begin            RecordLink."Link ID" := 0;            RecordLink."Record ID" := Rec.RecordId();            if Rec.Status = Rec.Status::Error then                RecordLink.Description := CopyStr(Rec."Error Message", 1, MaxStrLen(RecordLink.Description))

All 252 lines

Events 2 in 29

[IntegrationEvent] OnAfterRun(JobQueueEntry: Record "Job Queue Entry"; RecordLink: Record "Record Link")17-29
[IntegrationEvent] OnBeforeRun(var JobQueueEntry: Record "Job Queue Entry"; var RecordLink: Record "Record Link"; var IsHandled: Boolean)17-29

Public procedures 1 in 29

SetJobQueueEntryStatusToOnHold(ModifyOnlyWhenReadOnlyNotification: Notification)17-29

All 9 procedures in 17-29

Changes 8 in 25

List17181920212223242526272829
Procedures8
internal SendNotificationWhenJobFailed()new in 25
added
internal GetJobQueueFailedNotificationId(): Guidnew in 25
added
internal GetJobQueueSingleTaskFailedMsg(): Textnew in 25
added
internal GetJobQueueMultipleTaskFailedMsg(): Textnew in 25
added
internal RestartFailedJob(JobFailedNotification: Notification)new in 25
added
internal ShowMoreDetailForSingleFailedJob(JobFailedNotification: Notification)new in 25
added

All 8 changes in 17-29