KVSMEDeBoxLib
Procedures
CheckAndProcessDocument(Record KVSMEDeBoxEntry, Record KVSMEDInfoRequestHeader) : Boolean
Summary: Checks and processes documents in the eBox entry.
procedure CheckAndProcessDocument(var KVSMEDeBoxEntry: Record "KVSMEDeBoxEntry"; var TempKVSMEDInfoRequestHeaderSelected: Record "KVSMEDInfoRequestHeader" temporary): Boolean
Parameters:
KVSMEDeBoxEntry:TempKVSMEDInfoRequestHeaderSelected:
Returns:
AssignInfoRequest(Record KVSMEDeBoxEntry, Variant, Boolean) : Boolean
Summary: Saves InfoRequestHeader or archived InfoRequestHeader into eBox.
procedure AssignInfoRequest(var EBoxEntryVar: Record "KVSMEDeBoxEntry"; InfoReqRecordVariant: Variant; SaveToEBoxPar: Boolean): Boolean
Parameters:
EBoxEntryVar:InfoReqRecordVariant:SaveToEBoxPar:
Returns:
SetCalledfromBatch(Boolean) :
Summary: Sets the CalledFromBatch flag to indicate if the current process is running in batch mode. This affects certain behaviors, such as suppressing user prompts.
procedure SetCalledfromBatch(BatchMode: Boolean):
Parameters:
BatchMode: Boolean value indicating if the process is in batch mode.
ArchiveToDMS(Record KVSMEDDIIMDocument) : Text
Summary: Archives the specified DI-IM document to the DMS (Document Management System). Uses field mapping and additional index values based on the document type and communication document configuration.
procedure ArchiveToDMS(var KVSMEDDIIMDocument: Record "KVSMEDDIIMDocument"): Text
Parameters:
KVSMEDDIIMDocument: The DI-IM document record to archive.
Returns: An empty string on success, or an error message if the archiving failed.
GetRecordID(Variant, RecordId) :
Summary: Retrieves the RecordId from a given Variant that contains a record.
procedure GetRecordID(var CurrRecVariant: Variant; var RecID: RecordId):
Parameters:
CurrRecVariant: The Variant containing the record to get the RecordId from.RecID: Return value: the RecordId of the record contained in the Variant.
InsertEBoxFromIMDocument(Record KVSMEDDIIMDocument, Code[20], BigInteger) : BigInteger
procedure InsertEBoxFromIMDocument(var DIIMDocument: Record "KVSMEDDIIMDocument"; SubTypePar: Code[20]; RelatedEntryNoPar: BigInteger): BigInteger
Events
OnShowDocumentOnAppLogDocTypeCaseElse(Record KVSMEDeBoxEntry, Boolean) :
[IntegrationEvent(false, false)]
local procedure OnShowDocumentOnAppLogDocTypeCaseElse(var EBox: Record "KVSMEDeBoxEntry"; var IsHandled: Boolean):
OnBeforeRemoveClosedEBoxEntries(Code[50], Boolean) :
[IntegrationEvent(false, false)]
local procedure OnBeforeRemoveClosedEBoxEntries(UserCode: Code[50]; var IsHandled: Boolean):
OnAfterAssignInfoRequest(Record KVSMEDeBoxEntry, Variant, Boolean) :
[IntegrationEvent(false, false)]
local procedure OnAfterAssignInfoRequest(var KVSMEDeBoxEntry: Record "KVSMEDeBoxEntry"; InfoReqRecordVariant: Variant; SaveToEBox: Boolean):
OnBeforeCheckCustomerWithBirthdayExists(Date, Boolean, Boolean) :
Summary: Raised before checking whether a customer with a specific birthday exists. Allows subscribers to implement custom logic or override the default behavior.
[IntegrationEvent(false, false)]
local procedure OnBeforeCheckCustomerWithBirthdayExists(Birthday: Date; var IsHandled: Boolean; var ExistsReturnValue: Boolean):
Parameters:
Birthday: The birthday date to check for.IsHandled: Set to true to prevent the default check logic from executing.ExistsReturnValue: The result indicating whether a customer with the specified birthday exists. Set by subscribers.