Skip to content

KVSMTCDIImportDIIMDocuments#

Events#

OnBeforeArchiveDMSBarcodeFlag(Record KVSMTCDIDMSBarcode, Text[250]) :#

Summary: The event can be used to define an subdirectory for archiving a barcode flag

[IntegrationEvent(false, false)]
local procedure OnBeforeArchiveDMSBarcodeFlag(KVSMTCDIDMSBarcode: Record "KVSMTCDIDMSBarcode"; var Subdirectory: Text[250]): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSMTCDIImportDIIMDocuments", 'OnBeforeArchiveDMSBarcodeFlag', '', false, false)]
local procedure DoSomethingOnBeforeArchiveDMSBarcodeFlag(KVSMTCDIDMSBarcode: Record "KVSMTCDIDMSBarcode"; var Subdirectory: Text[250])
begin
end;

Parameters:

  • KVSMTCDIDMSBarcode: DMS Barcode record
  • Subdirectory: Subdirectory to be used for archiving

OnUnknownProcessTypeInAutoArchiveDoc(Record KVSMTCDIIMDocument, Boolean) :#

Summary: Event triggered when an unknown process type is encountered during auto-archiving of an IM document. Allows subscribers to handle custom process types.

[IntegrationEvent(false, false)]
local procedure OnUnknownProcessTypeInAutoArchiveDoc(var KVSMTCDIIMDocument: Record "KVSMTCDIIMDocument"; var IsHandled: Boolean): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSMTCDIImportDIIMDocuments", 'OnUnknownProcessTypeInAutoArchiveDoc', '', false, false)]
local procedure DoSomethingOnUnknownProcessTypeInAutoArchiveDoc(var KVSMTCDIIMDocument: Record "KVSMTCDIIMDocument"; var IsHandled: Boolean)
begin
end;

Parameters:

  • KVSMTCDIIMDocument: The IM Document record being processed.
  • IsHandled: Set to true by the subscriber if the process type is handled.

OnBeforeProcessAutoArchivingIMDoc(Record KVSMTCDIIMDocument, Boolean) :#

Summary: The event can be used to process the auto archiving of IM documents.

[IntegrationEvent(false, false)]
local procedure OnBeforeProcessAutoArchivingIMDoc(var KVSMTCDIIMDocument: Record "KVSMTCDIIMDocument"; var IsHandled: Boolean): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSMTCDIImportDIIMDocuments", 'OnBeforeProcessAutoArchivingIMDoc', '', false, false)]
local procedure DoSomethingOnBeforeProcessAutoArchivingIMDoc(var KVSMTCDIIMDocument: Record "KVSMTCDIIMDocument"; var IsHandled: Boolean)
begin
end;

Parameters:

  • KVSMTCDIIMDocument: IM Document entry that should be archived
  • IsHandled: Set true if the IM Document entry is processed

OnAfterArchivingDIIMDocumentWithDirectArchiving(Record KVSMTCDIIMDocument) :#

Summary: Event triggered after archiving a DI-IM Document using direct archiving. Allows subscribers to perform additional actions after the archiving process.

[IntegrationEvent(false, false)]
local procedure OnAfterArchivingDIIMDocumentWithDirectArchiving(var KVSMTCDIIMDocument: Record "KVSMTCDIIMDocument"): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSMTCDIImportDIIMDocuments", 'OnAfterArchivingDIIMDocumentWithDirectArchiving', '', false, false)]
local procedure DoSomethingOnAfterArchivingDIIMDocumentWithDirectArchiving(var KVSMTCDIIMDocument: Record "KVSMTCDIIMDocument")
begin
end;

Parameters:

  • KVSMTCDIIMDocument: The IM Document record that was archived.