AL
AL copied to clipboard
EventRequest OnPopulateApprovalEntryArgument in CU1535
In CU 1535 "Approvals Management" we need an event in Function "PopulateApprovalEntryArgument".
Position would be in the CASE, I'd suggest an ELSE:

DATABASE::"Incoming Document":BEGIN
RecRef.SETTABLE(IncomingDocument);
ApprovalEntryArgument."Document No." := FORMAT(IncomingDocument."Entry No.");
END;
// Need >>
ELSE
OnPopulateApprovalEntryArgument(RecRef,ApprovalEntryArgument);
// Need <<
END;
LOCAL [IntegrationEvent] OnPopulateApprovalEntryArgument(RecRef : RecordRef;VAR ApprovalEntryArgument : Record "Approval Entry")