Why do you need this change?
Required to execute additional notification/logging after standard Job Queue status message is shown.
Describe the request
Current Code
procedure ShowStatusMsg(JQID: Guid)
var
JobQueueEntry: Record "Job Queue Entry";
begin
if JobQueueEntry.Get(JQID) then
case JobQueueEntry.Status of
JobQueueEntry.Status::Error:
Message(JobQueueEntry."Error Message");
JobQueueEntry.Status::"In Process":
Message(Format(JobQueueEntry.Status::"In Process"));
else
Message(ScheduledForPostingMsg, JobQueueEntry."User Session Started", JobQueueEntry."User ID");
end;
end;
Requested Change
procedure ShowStatusMsg(JQID: Guid)
var
JobQueueEntry: Record "Job Queue Entry";
begin
if JobQueueEntry.Get(JQID) then
case JobQueueEntry.Status of
JobQueueEntry.Status::Error:
Message(JobQueueEntry."Error Message");
JobQueueEntry.Status::"In Process":
Message(Format(JobQueueEntry.Status::"In Process"));
else
Message(ScheduledForPostingMsg, JobQueueEntry."User Session Started", JobQueueEntry."User ID");
end;
**OnAfterShowStatusMsg(Rec, JQID);**
end;
Requested Event Publisher
[IntegrationEvent(false, false)]
local procedure (var JobQueueEntry: Record "Job Queue Entry"; var JQID: Guid)
begin
end;
Internal work item: AB#641298
Why do you need this change?
Required to execute additional notification/logging after standard Job Queue status message is shown.
Describe the request
Current Code
procedure ShowStatusMsg(JQID: Guid)
var
JobQueueEntry: Record "Job Queue Entry";
begin
if JobQueueEntry.Get(JQID) then
case JobQueueEntry.Status of
JobQueueEntry.Status::Error:
Message(JobQueueEntry."Error Message");
JobQueueEntry.Status::"In Process":
Message(Format(JobQueueEntry.Status::"In Process"));
else
Message(ScheduledForPostingMsg, JobQueueEntry."User Session Started", JobQueueEntry."User ID");
end;
end;
Requested Change
procedure ShowStatusMsg(JQID: Guid)
var
JobQueueEntry: Record "Job Queue Entry";
begin
if JobQueueEntry.Get(JQID) then
case JobQueueEntry.Status of
JobQueueEntry.Status::Error:
Message(JobQueueEntry."Error Message");
JobQueueEntry.Status::"In Process":
Message(Format(JobQueueEntry.Status::"In Process"));
else
Message(ScheduledForPostingMsg, JobQueueEntry."User Session Started", JobQueueEntry."User ID");
end;
Requested Event Publisher
[IntegrationEvent(false, false)]
local procedure (var JobQueueEntry: Record "Job Queue Entry"; var JQID: Guid)
begin
end;
Internal work item: AB#641298