[Event Request] Codeunit 181 "Copy Gen. Journal Mgt."
Why do you need this change?
Please add a new event in the ShowFinishMessage to have a possibility to ignore the FinishMessage and run custom functionality.
Describe the request
local procedure ShowFinishMessage(LineCount: Integer; CopyGenJournalParameters: Record "Copy Gen. Journal Parameters")
var
GenJournalBatch: Record "Gen. Journal Batch";
ConfirmManagement: Codeunit "Confirm Management";
GenJnlManagement: Codeunit GenJnlManagement;
IsHandled: Boolean;
begin
// >>>
IsHandled := false;
OnBeforeShowFinishMessage(LineCount, CopyGenJournalParameters);
if IsHandled then
exit();
// <<<
if ConfirmManagement.GetResponse(StrSubstNo(CopiedLinesTxt, LineCount), false) then begin
GenJournalBatch.Get(CopyGenJournalParameters."Journal Template Name", CopyGenJournalParameters."Journal Batch Name");
GenJnlManagement.TemplateSelectionFromBatch(GenJournalBatch);
end;
end;
[IntegrationEvent(false, false)]
local procedure OnBeforeShowFinishMessage(LineCount: Integer; CopyGenJournalParameters: Record "Copy Gen. Journal Parameters"; var IsHandled: Boolean)
begin
end;
Hi @bogdangarkusha,
Thank you for your extensibility request. To help us process it efficiently, please update the issue to include the required information.
Missing Information:
- Alternatives evaluated: Explain which existing events or extension patterns you considered and why they do not work for this scenario.
- Justification for IsHandled: Clarify why bypassing the standard logic with an
IsHandledpattern is required instead of using a regular event. - Performance considerations: Add a brief note on expected execution frequency and any performance impact.
- Data sensitivity review: Confirm whether this change would expose any sensitive data.
- Multi-extension interaction: Describe any risks or expected behavior if multiple extensions subscribe and alter the control flow.
Please update the issue with the missing details. We'll automatically re-analyze once updated.
[!NOTE] Automatically generated by the Triage Agent — advisory only. An engineer will review before any action is taken.
[!TIP] Not accurate? Reply with
/not-accurate(optional: add a short explanation). Your feedback improves future responses.
Hi @bogdangarkusha,
Thank you for your extensibility request. To help us process it efficiently, please update the issue to include the required information.
Missing Information:
- Alternatives evaluated: Explain which existing events or extension patterns you considered and why they do not work for this scenario.
- Justification for IsHandled: Clarify why bypassing the standard logic with an
IsHandledpattern is required instead of using a regular event. - Performance considerations: Add a brief note on expected execution frequency and any performance impact.
- Data sensitivity review: Confirm whether this change would expose any sensitive data.
- Multi-extension interaction: Describe any risks or expected behavior if multiple extensions subscribe and alter the control flow.
Please update the issue with the missing details. We'll automatically re-analyze once updated.
[!NOTE] Automatically generated by the Triage Agent — advisory only. An engineer will review before any action is taken.
[!TIP] Not accurate? Reply with
/not-accurate(optional: add a short explanation). Your feedback improves future responses.
No recent activity, so this issue will now be closed. If you still need this request, please create a new issue and include the required updated information.
[!NOTE] Automatically generated by the Triage Agent — advisory only. An engineer will review before any action is taken.
[!TIP] Not accurate? Reply with
/not-accurate(optional: add a short explanation). Your feedback improves future responses.