-
Notifications
You must be signed in to change notification settings - Fork 692
[Event Request] Codeunit 1503 "Workflow Record Management" - OnbeforeBackupRecord #29225
Copy link
Copy link
Closed
Closed
Copy link
Labels
IntegrationGitHub request for Integration areaGitHub request for Integration areaevent-requestRequest for adding an eventRequest for adding an eventships-in-future-updateFix ships in a future updateFix ships in a future update
Description
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
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
IntegrationGitHub request for Integration areaGitHub request for Integration areaevent-requestRequest for adding an eventRequest for adding an eventships-in-future-updateFix ships in a future updateFix ships in a future update