CheckMandatoryMetadatafield

Description

Checks if the repository mandatory fields are filled. The repository mandatory fields are defined in the document definition.


Syntax

AL
CheckMandatoryMetadatafield(var TempECMJnlLine: Record "ECM Document Journal Line"; var ECMDocDef: Record "ECM Document Definition"; MainRecordVariant: Variant; ShowMessage: Boolean): Boolean


Parameters

Variable: TempECMJnlLine

Type: Record "ECM Document Journal Line" temporary

Used as a data object ("container") to pass data to a function, for all fields that need to be filled in the document items. By default, the document items are filled using the MainRecord and the document definition.

Filename, BLOB and MD5 hash are mandatory fields


Variable: ECMDocDef

Type: Record "ECM Document Definition"

ECM document definition for the record. The correct document definition for the record is searched for with the API function FindDocDefByRRef . Values different from or additional to the found document definition can be added to the record if needed.


MainRecordVariant

Type: Variant

MainRecord (record) is entered into the ECM queue and is required for processing the metadata.

Tip: The MainRecord can be passed as Record, RecordID or RecordRef.


ShowMessage

Type: Boolean

Switch that determines whether messages that arise during processing are displayed.

If TRUE, messages are displayed, if FALSE they are not.



Return Value:

Type: Boolean

TRUE if processing was successful, otherwise FALSE




Remarks:



Example: