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