ALAppExtensions icon indicating copy to clipboard operation
ALAppExtensions copied to clipboard

[Event Request] Codeunit 181 "Copy Gen. Journal Mgt."

Open bogdangarkusha opened this issue 3 months ago • 3 comments

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;

bogdangarkusha avatar Aug 07 '26 09:08 bogdangarkusha

Hi @bogdangarkusha,

Thank you for your extensibility request. To help us process it efficiently, please update the issue to include the required information.

📚 Extensibility Guidelines

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 IsHandled pattern 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.

github-actions[bot] avatar Aug 07 '26 13:08 github-actions[bot]

Hi @bogdangarkusha,

Thank you for your extensibility request. To help us process it efficiently, please update the issue to include the required information.

📚 Extensibility Guidelines

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 IsHandled pattern 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.

github-actions[bot] avatar Sep 07 '26 07:09 github-actions[bot]

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.

github-actions[bot] avatar Oct 07 '26 13:10 github-actions[bot]