FindDocDefByName (Deprecated)

Description

Searches a document definition by the specified name and a start date (effective date) of a document definition (in the recent past).

Deprecated - Still in the ECM API for compatibility reasons.


Syntax

AL
[FoundDocDef:= ] FindDocDefByRRef(var ECMDocDef: Record "ECM Document Definition", DocDefName: Text; StartingDate: Date; PurposeofUse: Enum "ECM Purpose Of Use")


Parameters

Variable: ECMDocDef

Type: Record "ECM Document Definition"

This is the found ECM document definition that is returned.


DocDefName

Type: Text

Filter on the "Document Definition Name" field in the ECM document definition.


StartingDate

Type: Date

Filtern alle ECM Dokumenten Definition bis zum Startdatum


PurposeofUse

Type: Enum "ECM Purpose Of Use"

The Purpose of Use can be used to limit the search.


[Optional] ReportID

Type: Integer

Report ID is not used to search for an ECM document definition, but only to search for a different document category. If the field "Use passed report" has been checked in the ECM document definition, this report will be used for further processing.



Return Value:

FoundDocDef

Type: Boolean

True if the "ECM Document Definition" was found, otherwise False



Remarks:

This function is intended for special project requirements. By default, the FindDocDefByRRef function should be used to find a matching ECM document definition by table ID.


Example: