--- title: "Company attribute rule" slug: "base-company-attribute-rule" updated: 2026-04-02T13:03:26Z published: 2026-04-02T13:03:26Z canonical: "docs.lobstersoftware.com/base-company-attribute-rule" --- > ## 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. # Company attribute rule > [!NOTE] > Rule type – Abstract > > **Purpose:** Is considered 'passed' if at least one of the company and address attributes of the *reference object* matches the criteria for **Company type** and/or **Companies** (or **child companies**) defined statically in the configuration. > > > [!TIP] > > Tooltip > > > > - **Usage:** The rule should only be used in the context of *reference objects* that are not only 'attribute owners' but explicitly support company and address attributes. A multiple selection for **Company type** decides which company attributes are evaluated. A multiple selection for **Companies** defines which [Companies/Clients](/v1/docs/en/base-company-account) are accepted alternatively as a value of an evaluated company attribute. The rule is considered 'passed' if at least one company attribute meets both criteria. > > - **Parameter:** > > - **Company type**: *optional* multiple selection based on the dynamic enumeration for the [Company type](/v1/docs/en/base-company-type); if no company type is selected, all company attributes are evaluated. > > - **Companies**: *optional* multiple selection for [Companies/Clients](/v1/docs/en/base-company-account); if no company is selected, the rule is passed when at least one company and address attribute with a selected [Company type](/v1/docs/en/base-company-type) exists. > > - **or any child company (all levels)**: This option can be set if, in addition to the specified [Companies/Clients](/v1/docs/en/base-company-account), their child companies are also accepted by the rule. > > - **WARNING:** If one of the optional parameters is omitted, the notes and warning in the manual must be observed. ![images/download/attachments/201678025/image-2025-3-26_13-23-52-version-1-modificationdate-1747746385529-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image-2025-3-26_13-23-52-version-1-modificationdate-1747746385529-api-v2.png) The [Company attribute rule](/v1/docs/en/base-company-attribute-rule) is considered 'passed' if at least one of the company and address attributes of the *reference object* matches the criteria for **Company type** and/or **Companies** (or **child companies**) statically defined in the configuration. Only entities whose type supports the possession of company and address attributes can be considered as *reference objects*. By default, this applies to the following entity types: - All business transaction objects ([Common business object](/v1/docs/en/orchestration-common-bto), [Orders](/v1/docs/en/ord-order), [Manifests](/v1/docs/en/mfst-manifest), [Shipments](/v1/docs/en/shp-shipment) and time slot book entries – see [Time slot management](/v1/docs/en/orchestration-rules-tsmt)) - Other entity types: [Routing table entry](/v1/docs/en/base-r-routing-table-entry) The **Companies** and **Company type** parameters are optional, but are *typically* used in combination to check whether at least one of the specified **Companies** (or one of its **child companies**) is marked as 'involved' in the *reference object* via a company attribute that refers to a specified **Company type**. Systematically, there are four cases for the use of the two optional parameters: | Company type | Companies | Effective test criterion of the rule | Comment | | --- | --- | --- | --- | | ![images/s/-95e2zf/9012/8yg2g7/_/images/icons/emoticons/check.svg](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/check(27).svg) one or more 'company types' selected | ![images/s/-95e2zf/9012/8yg2g7/_/images/icons/emoticons/check.svg](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/check(27).svg) one or more' 'company types' selected | Is at least one of the **Companies** (including **child companies**, if applicable) involved in the *reference object* via a company attribute with one of the **Company** **types**? | Typical use | | ![images/s/-95e2zf/9012/8yg2g7/_/images/icons/emoticons/error.svg](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/error(21).svg) no selection | ![images/s/-95e2zf/9012/8yg2g7/_/images/icons/emoticons/check.svg](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/check(27).svg) one or more 'company types' selected | Is at least one of the **Companies** (including **child companies**, if applicable) involved in the *reference* *object* via any company attribute? | Special use | | ![images/s/-95e2zf/9012/8yg2g7/_/images/icons/emoticons/check.svg](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/check(27).svg) one or more 'company types' selected | ![images/s/-95e2zf/9012/8yg2g7/_/images/icons/emoticons/error.svg](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/error(21).svg) no selection | Is there at least one company and address attribute with one of the selected **Company types**? | Conditionally recommended (see 'Configuration') | | ![images/s/-95e2zf/9012/8yg2g7/_/images/icons/emoticons/error.svg](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/error(21).svg) no selection | ![images/s/-95e2zf/9012/8yg2g7/_/images/icons/emoticons/error.svg](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/error(21).svg) no selection | *Reference object* can in principle have attributes, but is not one of the following entity types: - [Dangerous goods](/v1/docs/en/base-dg-dangerous-goods-book-entry) - [Custom type definitions](/v1/docs/en/custom-custom-type-definition) (also [Attribute owner](/v1/docs/en/custom-attribute-owner-extension)!) | Limited usefulness | ## Configuration The [Company attribute rule](/v1/docs/en/base-company-attribute-rule) expects a *reference object* that supports company and address attributes (see above). **NOTE:** If the **Company type** and **Companies** parameters are not used, the [Company attribute rule](/v1/docs/en/base-company-attribute-rule) will still be considered as 'passed' (otherwise as 'failed') for most entity types (see table above) that can be 'attribute owners'. | The optional **Company** **type** parameter defines a static multiple selection for values from the dynamic enumeration for the [Company type](/v1/docs/en/base-company-type). The criterion defined by the selection is considered to be met if the *reference object* has at least one company and address attribute whose [Company type](/v1/docs/en/base-company-type) (`companyType`) appears in the multiple selection. Whether the attribute in question actually refers to a particular company as a value or specifies an address or a company reference, is only relevant if the optional **Companies** parameter is additionally used to define a criterion for companies. A combination of both parameters is *typical* but not *required*. **CAUTION****:** If only the **Company type** parameter is used, the rule is considered 'passed' even if the *reference* *object* has a company and address attribute without a value. If an existing assignment for a company and address attribute is deleted (e.g. within a data input form), the company and address attribute in question remains without a value. A [Company attribute rule](/v1/docs/en/base-company-attribute-rule) rule that checks only the **Company type** parameter may then pass even though there is no longer an assignment for the checked [Company type](/v1/docs/en/base-company-type). **IMPORTANT:** If [Enumeration filters](/v1/docs/en/core-dynamic-enum-filter) are applicable for the [Company type](/v1/docs/en/base-company-type) enumeration in the context of a session, they also restrict the selection for the **Company type** in the course of the configuration. However, [Enumeration filters](/v1/docs/en/core-dynamic-enum-filter) have no influence on the evaluation of the [Company attribute rule](/v1/docs/en/base-company-attribute-rule) at runtime. | ![images/download/attachments/201678025/image-2025-3-26_13-25-31-version-1-modificationdate-1747746385527-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image-2025-3-26_13-25-31-version-1-modificationdate-1747746385527-api-v2.png) - In the example, the [Company type](/v1/docs/en/base-company-type) 'Origin port' was selected. After that, a search for other types of ports was started by entering the text 'port'. - Additional or different company types can be selected using the features in the gray footer (see [Multiselect combobox](/v1/docs/en/fre-multi-select-combo-box-vo)). | | --- | --- | | The optional **Companies** parameter defines a static multiple selection of [Companies/Clients](/v1/docs/en/base-company-account). The criterion defined by the selection is considered to be met if the *reference object* has at least one company and address attribute that is expressed as a company attribute and thereby specifies one of the companies in the multiple selection as the 'company involved'. Whether the *same* attribute also specifies an address or reference as a value is irrelevant. If the **Company type** parameter does not specify a selection for the [Company type](/v1/docs/en/base-company-type), all company attributes are evaluated. Specified **Companies** are then accepted without considering the type of their participation in the *reference object*. **NOTE:** The selection of companies in the **Companies** parameter dropdown in the course of configuration is not automatically restricted based on the multiple selection for the **Company type** vs. the 'Company types' (`companyTypes`) field in the company account. All companies are always selectable for whose account there is at least read access in the respective session. | ![images/download/attachments/201678025/image-2025-3-26_13-26-33-version-1-modificationdate-1747746385525-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image-2025-3-26_13-26-33-version-1-modificationdate-1747746385525-api-v2.png) | | The option **or any child company (all levels)** allows, in addition to the companies directly specified via the **Companies** parameter, all companies that are directly or in directly subordinate to these in the company hierarchy to be entered as 'involved'. In the example on the right, the parameters in combination qualify that the [Company attribute rule](/v1/docs/en/base-company-attribute-rule) as a whole should be considered as 'passed', if at least one company attribute in the *reference object* refers to a 'company' as 'Transit port' or 'Destination port', which is to be assigned to the region 'APAC' (Asia/Pacific). In the context of the example, the seaports are mapped as company accounts that specify one or more 'groups' (see also [Company meta type](/v1/docs/en/base-company-meta-type)) as parent companies in order to map (among other things) the affiliation to certain regions ('APAC', 'EMEA', etc.). --- **NOTE:** [Companies/Clients](/v1/docs/en/base-company-account) may reference other [Companies/Clients](/v1/docs/en/base-company-account) via the property 'Parent companies' (`parentCompanies`). They are then called 'direct children' of the referenced company. If a cascade of such references defines a relation of two [Companies/Clients](/v1/docs/en/base-company-account) within the same company hierarchy across a number of levels, they are referred to as indirect parents/children. | ![images/download/attachments/201678025/image-2025-3-26_13-27-57-version-1-modificationdate-1747746385516-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image-2025-3-26_13-27-57-version-1-modificationdate-1747746385516-api-v2.png) |