This is in Send Approval Request.
I want if workflow is enabled, a certain check to be done and if a check completes without error, then run ApprovalsMgt.OnSendPmtForApproval(Rec); but if there is an error message displayed, no running of ApprovalsMgt.OnSendPmtForApproval(Rec); below is my code
if ApprovalsManagement.CheckPmtApprovalsWorkflowEnabled(Rec) then begin
if MgtSetup."Archive Trans" then
archiving.TransArchieved(Rec);//error shows here if the condition is not fulfilled
ApprovalsMgt.OnSendPmtForApproval(Rec);
end;
Kindly assist

Report
All responses (
Answers (