Skip to content

KVSMEDDIImportDIIMDocuments#

Events#

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

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

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

Parameters:

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

OnBeforeProcessAutoArchivingIMDoc(Record KVSMEDDIIMDocument, Boolean) :#

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

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

Parameters:

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

OnUnknownProcessTypeInAutoArchiveDoc(Record KVSMEDDIIMDocument, 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 KVSMEDDIIMDocument: Record "KVSMEDDIIMDocument"; var IsHandled: Boolean): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSMEDDIImportDIIMDocuments", 'OnUnknownProcessTypeInAutoArchiveDoc', '', false, false)]
local procedure DoSomethingOnUnknownProcessTypeInAutoArchiveDoc(var KVSMEDDIIMDocument: Record "KVSMEDDIIMDocument"; var IsHandled: Boolean)
begin
end;

Parameters:

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

OnAfterArchivingDIIMDocumentWithDirectArchiving(Record KVSMEDDIIMDocument) :#

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 KVSMEDDIIMDocument: Record "KVSMEDDIIMDocument"): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSMEDDIImportDIIMDocuments", 'OnAfterArchivingDIIMDocumentWithDirectArchiving', '', false, false)]
local procedure DoSomethingOnAfterArchivingDIIMDocumentWithDirectArchiving(var KVSMEDDIIMDocument: Record "KVSMEDDIIMDocument")
begin
end;

Parameters:

  • KVSMEDDIIMDocument: The IM Document record that was archived.