TransferECMDocRefRequest

Description

Creates an entry in the ECM queue for the transfer from one repository to another.


Syntax

AL
[ErrorCode:= ] TransferECMDocRefRequest(var ECMDocDef: Record "ECM Document Definition"; MainRecordVariant: Variant; ECMDocumentReference: Text; var TransactionNo: BigInteger) ErrorCode: Integer


Parameters

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.


ECMDocumentReference

Type: Text

The document reference (link to the repository) is passed here.


Variable: TransactionNo

Type: BigInteger

ECM queue transaction no. that is returned.



Return Value:

ErrorCode:

Type: Boolean

True, wenn die "ECM Document Definition" gefunden wurde, andernfalls False.

FoundDocDef = true, ErrorCode = 0 und TransactionNo <> 0, wenn der Vorgang erfolgreich war.



Remarks:



Example: