--- title: "Attribute join" slug: "core-attribute-join" updated: 2026-05-19T13:26:01Z published: 2026-05-19T13:26:01Z canonical: "docs.lobstersoftware.com/core-attribute-join" --- > ## 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. # Attribute join ![images/download/attachments/167859883/image-2024-1-25_12-22-21-version-1-modificationdate-1706181741033-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image-2024-1-25_12-22-21-version-1-modificationdate-1706181741033-api-v2.png) As with an [Attribute projection](/v1/docs/en/core-attribute-projection), an [Attribute join](/v1/docs/en/core-attribute-join) returns all or selected attribute values of the *attribute type* selected via the **Attribute** parameter. This is based on the main entity of the search or a different **Attribute owner path**. The possible uses for the [Attribute join](/v1/docs/en/core-attribute-join) in the context of different attribute types are illustrated by the following case differentiation: | Cardinality of the attribute/subtype ↓ | Attribute type is non-typed | Attribute type is typed | | --- | --- | --- | | | | **Specific subtype** | **All subtypes** | | **"singular" (≤1)** | Default access: [Singular attribute join](/v1/docs/en/core-singular-attribute-join) ([Attribute join](/v1/docs/en/core-attribute-join) applicable but no added value). | Default access: [Typed attribute join](/v1/docs/en/core-typed-attribute-join) ([Attribute join](/v1/docs/en/core-attribute-join) with **On** condition can be used for the (sub)type). | An [Attribute join](/v1/docs/en/core-attribute-join) evaluates instances for all *singular* and *plural* subtypes and returns a "flat" list that can be accessed by [Projections](/v1/docs/en/core-i-search-projection). | | **"plural" (≥1:)** | [Attribute join](/v1/docs/en/core-attribute-join) is the default access. | - A non-typed *singular* attribute can be selected as an **Attribute**. Technically, an [Attribute join](/v1/docs/en/core-attribute-join) therefore provides access to the value of a singular attribute. However, the [Singular attribute join](/v1/docs/en/core-singular-attribute-join) provides the same result. - For a non-typed *plural* **Attribute**, e.g. the "communication information" (`AddressCommunicationInfo`) for the entity type "Address" (`Address`), an [Attribute join](/v1/docs/en/core-attribute-join) represents the default join. - If the **Attribute** selection relates to an *attribute type* from the group of typed attributes (e.g. "text attribute" or "company and address attribute"), the [Attribute join](/v1/docs/en/core-attribute-join) provides the attribute values of all *singular* and *plural* subtypes as a "flat list". - The typed attributes with a *plural* subtype therefore do not appear "grouped" or "bundled" per attribute owner and subtype in the return value, but as individual attribute values (with the same subtype but different `index` value. In contrast to [Attribute projection](/v1/docs/en/core-attribute-projection), the list of return values for an [Attribute join](/v1/docs/en/core-attribute-join) can be restricted to a subset using a **On** condition. ## Configuration | Parameter | Data type | Description | | --- | --- | --- | | ***Specific parameters*** | | **Attribute owner path** | *Entity* *(projection)* | An **Attribute owner path** only needs to be explicitly defined by configuring a *projection* (see [Projections](/v1/docs/en/core-i-search-projection)) if the entity in the context of the search is not the owner of the attributes that are to be evaluated. This is relevant in the following cases, for example: - The *attribute owner* is an entity included in the search via [Entity join](/v1/docs/en/core-entity-join). - The *attribute owner* is a *line item* of an entity in the context of the search. - The *attribute owner* is an entity embedded in the entity data in the context of the search, e.g. the "Address" (`address`) of an account (see [Users](/v1/docs/en/base-user), [Companies/Clients](/v1/docs/en/base-company-account)). | | **Attribute** | *Class* *(attribute type)* | In the [Combobox](/v1/docs/en/fre-combo-box-vo) element for the **Attribute** parameter, a selection must be made from the attribute type options offered via a *dropdown*. Only the *attribute types* supported by the implementation of the entity type of the applicable *attribute owner* are available for selection here. **NOTE:** If no options are available for the **Attribute** or if options are missing, then the **Attribute owner path** may not have been set appropriately (e.g. the "Address" of an account for which no attributes are implemented). | | ***Generic parameters*** | | ***Join alias, Join type, Optional, On condition*** ***see*** [Entity join](/v1/docs/en/core-entity-join) | ## Examples ## Typical use case: Selective access to a plural attribute A [CSV search](/v1/docs/en/core-csv-search) for [Users](/v1/docs/en/base-user) should list e-mail addresses for each "username" (`username`) specified for this user via the "communication information" plural attribute of the user’s address. If there are multiple types of "communication information" with the [Communication type](/v1/docs/en/base-communication-type) "E-mail" (`EMAIL`) for a user, this should be output line by line (as multiple lines for the same user). If a "context" (`communicationContext`) is specified in the "communication information" attribute, this text value should appear in the output column (`CONTEXT`). Configuration: | The [Attribute join](/v1/docs/en/core-attribute-join) shown on the right is created within a [CSV search](/v1/docs/en/core-csv-search) for [Users](/v1/docs/en/base-user): - The **Attribute owner path** refers to the "Address" (`address`) property of the user account via [Property projection](/v1/docs/en/core-property-projection). - The name `email` is arbitrarily assigned as the **Join alias**. - The **Join type** "Left" ensures that [Users](/v1/docs/en/base-user) whose "communication information" does not contain an e-mail address also appear in the result. - The **Optional** option is irrelevant as long as at least one *projection* for an output column refers to the alias `email`. - In the **On** condition, a [Field restriction](/v1/docs/en/core-property-search) ensures that the [Attribute join](/v1/docs/en/core-attribute-join) `email` only assigns "communication information" instances that refer to the "e-mail" (`EMAIL`) [Communication type](/v1/docs/en/base-communication-type) in the "Type" (`communicationType`) property. | ![images/download/attachments/167859883/image-2024-1-25_17-22-44-version-1-modificationdate-1706199764346-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image-2024-1-25_17-22-44-version-1-modificationdate-1706199764346-api-v2.png) | | --- | --- | | The output columns are defined by three instances of the [Property projection](/v1/docs/en/core-property-projection): - The "Username" (`username`) property can be taken directly from the user account. - The "Value" (`communicationValue`) and "Context" (`communicationContext`) properties are read from the attribute value via the alias `email`. | ![images/download/attachments/167859883/image-2024-1-25_17-23-14-version-1-modificationdate-1706199794985-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image-2024-1-25_17-23-14-version-1-modificationdate-1706199794985-api-v2.png) | Runtime example: ```plaintext username,email.communicationValue,email.communicationContext ============================================================ jbond,jb007@mi6.uk,LOGIN jbond,info@mi6.uk,AOB mpolo,marco.polo@historyhas.it,ALERTS mpolo,sales@historyhas.it,AOB fbeutel,frank.beutel@acme.de,ALERTS fbeutel,frank.beutel@acme.de, esblofel,ernst@blofel.de,BLACKMAIL esblofel,stavro@blofel.de,RANSOM esblofel,info@blofel.de,AOB ... ``` | ### Special use case: Access to several subtypes of a typed attribute The company address (as attribute owner) can be used to assign address contacts to a company account. The relevant data is in turn [Addresses](/v1/docs/en/base-address), which are treated as a typed attribute of the "Address contact" (`AddressContact`) type, whereby a [Contact type](/v1/docs/en/base-contact-type) is assigned. A [Tuple search](/v1/docs/en/core-tuple-search) for [Companies/Clients](/v1/docs/en/base-company-account) is enriched with the address data of all address contacts whose [Contact type](/v1/docs/en/base-contact-type) is either "CEO" (`CEO`) or "Employee" (`EMPLOYEE`). Configuration: ![images/download/attachments/167859883/image-2024-1-25_17-20-3-version-1-modificationdate-1706199603688-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image-2024-1-25_17-20-3-version-1-modificationdate-1706199603688-api-v2.png) The [Attribute join](/v1/docs/en/core-attribute-join) shown above provides the desired address contacts via the following parameterization: - The **Attribute owner path** accesses the "Address" (`address`) property of the company account via a [Property projection](/v1/docs/en/core-property-projection). - The attribute type "Address contact" (`AddressContact`) is selected in the **Attribute** parameter. - The name `staff` is arbitrarily assigned as the **Join alias**. - The "Inner" **Join type** ensures that only [Companies/Clients](/v1/docs/en/base-company-account) for which at least one address contact exists are taken into account. - The **Optional** option is irrelevant, as [Projections](/v1/docs/en/core-i-search-projection) for output columns (see below) address the alias `staff`. - The **On** condition uses a [Search junction](/v1/docs/en/core-search-junction) that ORs two instances of the [Property projection](/v1/docs/en/core-property-projection): - The first [Property projection](/v1/docs/en/core-property-projection) determines whether the "Type" property of an address contact specifies "Managing Director" (`CEO`) as the [Contact type](/v1/docs/en/base-contact-type). - The first [Property projection](/v1/docs/en/core-property-projection) determines whether the "Type" property of an address contact specifies "Employee" (`EMPLOYEE`) as the [Contact type](/v1/docs/en/base-contact-type). | The output columns are defined by three instances of the [Property projection](/v1/docs/en/core-property-projection) as shown on the right: - To identify the company, the "Name" property from the company address (`address.name1`) is output in the first [Property projection](/v1/docs/en/core-property-projection). - The second [Property projection](/v1/docs/en/core-property-projection) outputs the [Contact type](/v1/docs/en/base-contact-type) from the "Type" property of the address contact from the alias `staff`. - The third [Property projection](/v1/docs/en/core-property-projection) returns the complete address entity from the `contactAddress` property of the address contact attribute, so that the result of the [Tuple search](/v1/docs/en/core-tuple-search) contains all the details of the contact. | ![images/download/attachments/167859883/image-2024-1-25_17-19-6-version-1-modificationdate-1706199546746-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image-2024-1-25_17-19-6-version-1-modificationdate-1706199546746-api-v2.png) | | --- | --- |