Skip to content

KVSDMSAutoArchEDocByJobQ#

Procedures#

OnRun#

procedure OnRun(Rec: Record "#437dbf0e84ff417a965ded2bb9650972#Job Queue Entry")

Events#

OnBeforeAutoArchEDocByJobQ(Record Job Queue Entry) :#

Summary: Event raised before processing Auto Archive of electronic Document by Job Queue.

[IntegrationEvent(false, false)]
local procedure OnBeforeAutoArchEDocByJobQ(var jobQueueEntry: Record "Job Queue Entry"): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSDMSAutoArchEDocByJobQ", 'OnBeforeAutoArchEDocByJobQ', '', false, false)]
local procedure DoSomethingOnBeforeAutoArchEDocByJobQ(var jobQueueEntry: Record "Job Queue Entry")
begin
end;

Parameters:

  • jobQueueEntry: Job Queue Entry with Parameter String pointing to E-Document Log Entry No.

Remarks: This event can be used to implement custom pre-processing logic or to skip certain E-Document Log entries from being automatically archived. The event is called with Job Queue Entry record as parameter whereas the parameter string is pointing to a E-Document Log Entry No. . If the event is handled and the Parameter String is modified to a non-existing E-Document Log Entry No., the automatic archiving process for the given E-Document Log entry will be skipped. This can be useful in scenarios where specific conditions need to be met before an electronic document is archived, or when certain documents should not be archived automatically.