Skip to content

[Event Request] [CZ] Codeunit 11755 "Registration Log Mgt. CZL" #29221

Description

@kamilvysmek

Why do you need this change?

We need new event for application customization.

Describe the request

Please add new event into this codeunit :

codeunit 11755 "Registration Log Mgt. CZL"
.
.
.
procedure LogVerification(var NewRegistrationLogCZL: Record "Registration Log CZL"; ResponseObject: JsonObject)
.
.
// Address information
if GetValue(ResponseObject, AddressKeyTok, AddressObject) then begin
// Country Code
if GetValue(AddressObject, CountryCodeKeyTok, Value) then
NewRegistrationLogCZL."Verified Country/Region Code" :=
CopyStr(Value, 1, MaxStrLen(NewRegistrationLogCZL."Verified Country/Region Code"));

        // City
        if GetValue(AddressObject, CityKeyTok, Value) then
            NewRegistrationLogCZL."Verified City" :=
                CopyStr(Value, 1, MaxStrLen(NewRegistrationLogCZL."Verified City"));

        // Post Code
        if GetValue(AddressObject, PostCodeKeyTok, Value) then
            NewRegistrationLogCZL."Verified Post Code" :=
                FormatPostCode(CopyStr(Value, 1, MaxStrLen(NewRegistrationLogCZL."Verified Post Code")));

        if GetValue(AddressObject, StreetKeyTok, Value) then
            Address[1] := Value;  // Street
        if GetValue(AddressObject, QuarterKeyTok, Value) then
            Address[2] := Value;  // Quarter
        if GetValue(AddressObject, HouseNoKeyTok, Value) then
            Address[3] := Value;  // House No.
        if GetValue(AddressObject, OrientationNoKeyTok, Value) then
            Address[4] := Value;  // Orientation No.
        if GetValue(AddressObject, OrientationNoLetterKeyTok, Value) then
            Address[5] := Value;  // Orientation No. Letter
        if GetValue(AddressObject, AddressTextKeyTok, Value) then
            AddressText := Value;  // Address Text
    end;

 NewRegistrationLogCZL."Verified Address" := CopyStr(FormatAddress(Address), 1, MaxStrLen(NewRegistrationLogCZL."Verified Address"));

//------------------------------------------------------------OnLogVerificationOnAfterFormatAddress :BEGIN
OnLogVerificationOnAfterFormatAddress(NewRegistrationLogCZL, Address);
//------------------------------------------------------------OnLogVerificationOnAfterFormatAddress :END

    if NewRegistrationLogCZL."Verified Address" = '' then
        NewRegistrationLogCZL."Verified Address" := CopyStr(AddressText, 1, MaxStrLen(NewRegistrationLogCZL."Verified Address"));
    NewRegistrationLogCZL.Insert(true);

.
.
//------------------------------------------------------------OnLogVerificationOnAfterFormatAddress :BEGIN
[IntegrationEvent(false, false)]
local procedure OnLogVerificationOnAfterFormatAddress(var RegistrationLogCZL: Record "Registration Log CZL"; Address: array[10] of Text;)
begin
end;
//------------------------------------------------------------OnLogVerificationOnAfterFormatAddress :END

Internal work item: AB#608815

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    FinanceGitHub request for Finance areaevent-requestRequest for adding an eventships-in-future-updateFix ships in a future update

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions