ALAppExtensions icon indicating copy to clipboard operation
ALAppExtensions copied to clipboard

[Event Request] codeunit 9520 "Mail Management" - OnAfterValidateEmailAddressField

Open Pepito-lab opened this issue 5 years ago • 3 comments

Hi, would it be possible to get an event OnAfterValidateEmailAddressField codeunit 9520 "Mail Management", like this :

    procedure ValidateEmailAddressField(var EmailAddress: Text)
    var
        IsHandled: Boolean;
    begin
        EmailAddress := DelChr(EmailAddress, '<>');

        if EmailAddress = '' then
            exit;
        IsHandled:= false;
        OnAfterValidateEmailAddressField(EmailAddress,IsHandled);
        if not IsHandled then
            CheckValidEmailAddress(EmailAddress);
    end;
    [IntegrationEvent(false, false)]
    local procedure OnAfterValidateEmailAddressField(var EmailAdress: Text; var IsHandled: Boolean)
    begin
    end;

Thanks!

Pepito-lab avatar Feb 16 '21 09:02 Pepito-lab

Why can't you use the existing event OnBeforeCheckValidEmailAddr?

StanPesotskiy avatar Feb 19 '21 06:02 StanPesotskiy

Hi, I can't use OnBeforeCheckValidEmailAddr because we use CheckValidateEmailAddress in other procedure and we want to call CheckValidateEmailAddresses. Thanks!

Pepito-lab avatar Feb 19 '21 08:02 Pepito-lab

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. We will update this issue with information about availability. 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 Feb 21 '21 08:02 JesperSchulz