--- title: "Document reference type" slug: "doc-document-reference-type" updated: 2026-05-13T14:05:49Z published: 2026-05-13T14:05:49Z canonical: "docs.lobstersoftware.com/doc-document-reference-type" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.lobstersoftware.com/llms.txt > Use this file to discover all available pages before exploring further. # Document reference type The predefined enumeration [Document reference type](/v1/docs/en/doc-document-reference-type) (`DocumentReferenceType`) defines selection options for the "Document reference type" for [Documents](/v1/docs/en/doc-document), which defines the mechanism for establishing a relationship from one document to another entity (see [Assigning documents](/v1/docs/en/doc-documents-assign)). - The list can be customized. - There is a separate *configuration type* "Document reference type (configuration)" (`DocumentReferenceTypeConfiguration`) for the configuration of enumeration values, which has two specific fields in addition to the "Icon URI" (`iconUri`) field: | The **Referenced entity** (`referencedEntity`) field can optionally be assigned a reference for an *entity type* (using a [Combobox](/v1/docs/en/fre-combo-box-vo)). - If an *entity type* is selected, then this is binding for the [Search](/v1/docs/en/core-search) being carried out for target objects to assign an existing document. - If no *entity type* is selected, the document to be referenced must specify an *entity type* in the "Referenced entity" (`referencedEntity`) field at runtime to which the [Search](/v1/docs/en/core-search) defined in the following parameter is applicable. The **Reference search** (`referenceSearch`) field defines a [Search](/v1/docs/en/core-search) for the relevant *entity type*, in which the text value in the "Reference" (`reference`) field of the document to be referenced can be accessed via the `reference` [Variable](/v1/docs/en/core-storage-value). The screenshot on the right shows the [Search](/v1/docs/en/core-search) for the only predefined [Document reference type](/v1/docs/en/doc-document-reference-type) "Entity ID" (`ENTITY_ID`), which contains a [Field restriction](/v1/docs/en/core-property-search) as the only **Where** condition in which the [Variable](/v1/docs/en/core-storage-value) `reference` is matched with the "ID" field of an undefined *entity type* (no **Referenced entity** selected). If the string provided by the document to be referenced as a "reference" (`reference`) at runtime matches the number sequence of an "ID" (`id`) for an instance of the *entity type* also to be provided, then a document that refers to this [Document reference type](/v1/docs/en/doc-document-reference-type) is automatically assigned to the relevant entity when it is saved. | ![images/download/attachments/201669229/image-2025-4-15_11-26-3-version-1-modificationdate-1744709162913-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image-2025-4-15_11-26-3-version-1-modificationdate-1744709162913-api-v2.png) | | --- | --- | Exactly one [Document reference type](/v1/docs/en/doc-document-reference-type) is predefined by default: | Ordinal | Name | Description | Icon URI | Referenced entity | Reference search | German | English | French | | --- | --- | --- | --- | --- | --- | --- | --- | --- | | `0` | `ENTITY_ID` | *empty* | *empty* | *empty* | see screenshot | *leer* | Entity ID | ID de l"entité |