GetDocument4ECMDocEntryNo

Description

Fetches the ECM document including all metadata and files from the repository and stores it in a temporary document buffer table.


Syntax

AL
[ErrorCode:= ] GetDocument4ECMDocEntryNo(EntryNo: Integer; FileName: Text; var TmpECMDocBuffer: Record "ECM Document Buffer")


Parameters

EntryNo

Type: Integer

For this ECM document item, the document is downloaded from the repository.


[Optional] FileName

Type: Text

Contains the file name under which the file is stored locally (download). If "empty", the file name from the repository is used.


Variable: TmpECMDocBuffer

Type: Record "ECM Document Buffer" temporary

Data container for the metadata from the repository.



Return Value:

ErrorCode

Type: Integer

ErrorCode = 0 if the operation was successful.



Remarks:

With this function, metadata and files can be downloaded from the repository and processed further.

E.g. to send invoices as e-mail.


Example: