Skip to content

[W1][Table][36][Sales Header] new IsSuccess parameter in OnSendToPostingOnAfterPost #29757

@RadoArvay

Description

@RadoArvay

Why do you need this change?

We need to do additional processing after a posting codeunit was run and a posting was not successful.

Describe the request

    procedure SendToPosting(PostingCodeunitID: Integer) IsSuccess: Boolean
        ...
        IsSuccess := CODEUNIT.Run(PostingCodeunitID, Rec);

-       OnSendToPostingOnAfterPost(Rec);
+       OnSendToPostingOnAfterPost(Rec, IsSuccess);
        if not IsSuccess then begin
          ...
    end;
    [IntegrationEvent(false, false)]
-   local procedure OnSendToPostingOnAfterPost(var SalesHeader: Record "Sales Header")
+   local procedure OnSendToPostingOnAfterPost(var SalesHeader: Record "Sales Header"; IsSuccess: Boolean)
    begin
    end;

Internal work item: AB#623175

Metadata

Metadata

Assignees

No one assigned

    Labels

    SCMGitHub request for SCM areaevent-requestRequest for adding an event

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions