ALAppExtensions icon indicating copy to clipboard operation
ALAppExtensions copied to clipboard

[Event Request] Codeunit 5051 SegManagement - OnBeforeFindInteractTmplCode

Open monicasuica opened this issue 4 years ago • 2 comments

Hi,

Please add a new event in the function FindInteractTmplCode:

  procedure FindInteractTmplCode(DocumentType: Integer) InteractTmplCode: Code[10]
    var
        IsHandled: Boolean;
    begin        
        IsHandled := false;
        OnBeforeFindInteractTmplCode(DocumentType, InteractTmplCode, IsHandled);
        if IsHandled then
            exit;
        ......
   end;

[IntegrationEvent(true, false)]
local procedure OnBeforeFindInteractTmplCode(DocumentType: Integer; var InteractionTemplateCode: Code[10]; var IsHandled: Boolean)
  begin
  end;

Thank you!

monicasuica avatar Apr 19 '22 12:04 monicasuica

Why can't you use already existing OnAfterFindInteractTmplCode instead?

Stepanenko-Vadim avatar Apr 20 '22 11:04 Stepanenko-Vadim

I assume you can, please do that. If you can't please open new issue with the scenario when you can't, since we don't monitor closed ones.

Stepanenko-Vadim avatar Apr 28 '22 07:04 Stepanenko-Vadim