Skip to content

[Event Request] Codeunit 1503 "Workflow Record Management" - OnbeforeBackupRecord #29225

@RZ440

Description

@RZ440

Why do you need this change?

We need an event to be able to add additional error handling.

Describe the request

Hello,
can you please add a new Event OnbeforeBackupRecord in BackupRecord() on Codeunit 1503 "Workflow Record Management" ?

procedure BackupRecord(Variant: Variant) Idx: Integer
    var
        VariantArrayElem: Variant;
    begin
        OnbeforeBackupRecord(Variant);

        if not Variant.IsRecord then
            Error(NotSupportedTypeErr);

        for Idx := 1 to ArrayLen(VarArray) do begin
            VariantArrayElem := VarArray[Idx];
            if not VariantArrayElem.IsRecord then begin
                VarArray[Idx] := Variant;
                exit(Idx);
            end;
        end;

        Error(NotEnoughSpaceErr);
    end;
[IntegrationEvent(false, false)]
local procedure OnbeforeBackupRecord(var Variant: Variant)
begin
end;

Internal work item: AB#608820

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions