Codeunit 1503 Workflow Record Management
- App
- Base Application
- Namespace
- System.Automation
- Versions
- 17-28
Versions171819202122232425262728
Source29
Source in 29
src/Layers/W1/BaseApp/System/Workflow/WorkflowRecordManagement.Codeunit.al48 lines, Copyright (c) Microsoft Corporation. MIT
namespace System.Automation;
codeunit 1503 "Workflow Record Management"
{
SingleInstance = true;
trigger OnRun()
begin
end;
var
VarArray: array[100] of Variant;
NotSupportedTypeErr: Label 'The type is not supported.';
NotEnoughSpaceErr: Label 'There is not enough space to save the record.';
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;
procedure RestoreRecord(Index: Integer; var Variant: Variant)
begin
Variant := VarArray[Index];
Clear(VarArray[Index]);
end;
[IntegrationEvent(false, false)]
local procedure OnBeforeBackupRecord(Variant: Variant)
begin
end;
}