2

is it possible to add a event so the Dimension Notification can be skipped when running a large configuration package from the UI.


See highlighted code below, no event to skip message


 procedure ApplyPackage(ConfigPackage: Record "Config. Package"; var ConfigPackageTable: Record "Config. Package Table"; SetupProcessingOrderForTables: Boolean) ErrorCount: Integer

    var

        DimSetEntry: Record "Dimension Set Entry";

        ConfigPackageTableParent: Record "Config. Package Table";

        LocalConfigPackageRecord: Record "Config. Package Record";

        LocalConfigPackageField: Record "Config. Package Field";

        FeatureTelemetry: Codeunit "Feature Telemetry";

        DimensionsNotifications: Codeunit "Dimensions Notifications";

        TableCount: Integer;

        RSApplyDataStartMsg: Label 'Apply of data started.', Locked = true;

        RSApplyDataFinishMsg: Label 'Apply of data finished. Error count: %1. Duration: %2 milliseconds. Total Records: %3. Total Fields: %4.', Locked = true;

        DurationAsInt: BigInteger;

        StartTime: DateTime;

        DimSetIDUsed: Boolean;

        RecordCount: Integer;

        FieldCount: Integer;

        ExecutionId: Guid;

        Dimensions: Dictionary of [Text, Text];

        IsHandled: Boolean;

    begin

        FeatureTelemetry.LogUptake('0000E3E', 'Configuration packages', Enum::"Feature Uptake Status"::"Used");


        LocalConfigPackageRecord.SetRange("Package Code", ConfigPackage.Code);

        RecordCount := LocalConfigPackageRecord.Count();

        LocalConfigPackageField.SetRange("Package Code", ConfigPackage.code);

        FieldCount := LocalConfigPackageField.Count();

        if GuiAllowed() then begin

            Commit();

            if ShowWarningOnApplyingBigConfPackage(RecordCount) = Action::Cancel then

                exit;

            if not DimensionsNotifications.ConfirmPackageHasDimensionsWarning(ConfigPackage.Code) then

                exit;

        end;

Category: Development
STATUS DETAILS
New