[Event Request] Codeunt 1535 Approvals Mgmt.
New event called OnSetStatusToPendingApproval to be added to the end of the SetStatusToPendingApproval function as follows…
OLD CODE
ELSE ERROR(UnsupportedRecordTypeErr,RecRef.CAPTION);
NEW CODE…
ELSE BEGIN OnSetStatusToPendingApproval(Variant,RecRef,Handled); IF NOT Handled THEN ERROR(UnsupportedRecordTypeErr,RecRef.CAPTION); END;
This is to allow additional record types to be used with approvals.
For completeness it would also be useful also add events to IsSufficientApprover() and InformUserOnStatusChange() functions in the same codeunit to allow us to extend the CASE statement usage
This is already done!
Closing as per @AlexanderYakunin's reply.