ALAppExtensions icon indicating copy to clipboard operation
ALAppExtensions copied to clipboard

Event Request - Workflow Management

Open JacopoMuzziCapBS opened this issue 5 years ago • 3 comments

We need to perform some actions before standard code in Workflow management in Codeunit "Approvals Mgt." (1535), Function MakeApprovalEntry. We need some more parameters in this event

"Record ID to Approve" := ApprovalEntryArgument."Record ID to Approve"; "Approval Code" := ApprovalEntryArgument."Approval Code"; //> Added isHandled := false; OnBeforeApprovalEntryInsert(ApprovalEntry, ApprovalEntryArgument, WorkflowStepArgument, ApproverId, isHandled); if not isHandled then //< Added Insert(true);

image

JacopoMuzziCapBS avatar Apr 23 '21 12:04 JacopoMuzziCapBS

You help us implementing the requests faster when your request contains AL code copied from VSCode instead of screenshots.

StanPesotskiy avatar Apr 23 '21 15:04 StanPesotskiy

[IntegrationEvent(false, false)] local procedure OnBeforeApprovalEntryInsert(var ApprovalEntry: Record "Approval Entry"; ApprovalEntryArgument: Record "Approval Entry"; WorkflowStepArgument: Record "Workflow Step Argument"; ApproverId: Code[50]; var isHandled: Boolean) begin end;

JacopoMuzziCapBS avatar Apr 26 '21 08:04 JacopoMuzziCapBS

Thanks for reporting this. We agree, and we’ll publish a fix asap, either in an update for the current version or in the next major release. Please do not reply to this, as we do not monitor closed issues. If you have follow-up questions or requests, please create a new issue where you reference this one.

JesperSchulz avatar Apr 30 '21 05:04 JesperSchulz