Skip to content

Table 472 - Job Queue Entry - Procedure [ShowStatusMsg] - (SoftwareOne - Company Details) #30305

Description

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    IntegrationGitHub request for Integration areaevent-requestRequest for adding an event

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions