ECMRepositoryRequest
Description
Creates an entry in the ECM queue
Syntax
AL
[ErrorCode:= ] ECMRepositoryRequest(var ECMDocDef: RecordĀ
"ECM Document Definition"
, MainRecordVariant: Variant, var TransactionNo: BigInteger)
Parameters
Variable: ECMDocDef
Type: Record "ECM Document Definition"
ECM document definition for the record. Values deviating from or additional to the found document definition can be added to the record if required.
MainRecord
Type: Variant
MainRecord (record) is entered into the ECM queue and is needed for processing (metadata and PDF creation).
Variable: TransactionNo
Type: BigInteger
ECM queue transaction no. that will be returned.
Return Value:
ErrorCode
Type: Integer
ErrorCode = 0 and TransactionNo <> 0, if the operation was successful.
With the function "ShowMessage" the ErrorCodes can be displayed and with the function "WriteLog" ErrorCodes can be logged.
Example: