Skip to content

[Event Request] Codeunit 1016 - OnBeforeSendJob #30164

Description

@frivadulla

Why do you need this change?

Hi,

We would like to request the addition of an Integration Event at the beginning of the Code() procedure in Codeunit 1016 "Jobs-Send", following the standard IsHandled pattern.

Describe the request

Proposed change:

local procedure "Code"()
var
    TempDocumentSendingProfile: Record "Document Sending Profile" temporary;
    IsHandled: Boolean;
begin
    IsHandled := false;
    OnBeforeSendJob(Job, IsHandled);
    if IsHandled then
        exit;

    if not ConfirmSend(Job, TempDocumentSendingProfile) then
        exit;
    // ... existing code
end;

[IntegrationEvent(false, false)]
local procedure OnBeforeSendJob(var Job: Record Job; var IsHandled: Boolean)
begin
end;

Internal work item: AB#640650

Metadata

Metadata

Assignees

No one assigned

    Labels

    SCMGitHub request for SCM areaevent-requestRequest for adding an event

    Type

    No fields configured for Task.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions