Skip to content

[Event Request] Table 11401 "CBG Statement Line" - OnBeforeCreateDim #29926

@KateDovgalova

Description

@KateDovgalova

Why do you need this change?

In 4PS Construct we need to execute customized code when creating dimensions. Most suitable way to implement this change would be by using integration event OnBeforeCreateDim - this event is present in procedure CreateDim for many other standard objects and allows adding dimension-related functionalities before getting the new Dimension Set ID.

Describe the request

Dear ALAppExtensions team,

On behalf of 4PS I would like to request integration event 'OnBeforeCreateDim' to be added to procedure "CreateDim" in table 11401 "CBG Statement Line".

    procedure CreateDim(DefaultDimSource: List of [Dictionary of [Integer, Code[20]]])
    var
        GenJournalTemplate: Record "Gen. Journal Template";
        IsHandled: Boolean; //new
    begin
        IsHandled := false; //new
        OnBeforeCreateDim(Rec, DefaultDimSource, IsHandled); //new
        if IsHandled then //new
            exit; //new

        "Shortcut Dimension 1 Code" := '';
        "Shortcut Dimension 2 Code" := '';
    [IntegrationEvent(false, false)]
    local procedure OnBeforeCreateDim(var CBGStatementLine: Record "CBG Statement Line"; DefaultDimSource: List of [Dictionary of [Integer, Code[20]]]; var IsHandled: Boolean)
    begin
        //new
    end;

Internal work item: AB#631150

Metadata

Metadata

Assignees

No one assigned

    Labels

    FinanceGitHub request for Finance areaevent-requestRequest for adding an event

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions