--- title: "Restrict by this parent company" slug: "freaction-update-company-parent-source" updated: 2026-05-05T06:55:10Z published: 2026-05-05T06:55:10Z canonical: "docs.lobstersoftware.com/freaction-update-company-parent-source" --- > ## 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. # Restrict by this parent company > [!NOTE] > Actions – Abstract > > The [Restrict by this parent company](/v1/docs/en/freaction-update-company-parent-source) action restricts choices for one of the following attributes to business objects in an input form to elements with a specific relation to a given company account (referred to as "This company" here). The [Restrict by this parent company](/v1/docs/en/freaction-update-company-parent-source) action restricts choices for one of the following attributes to business objects in an input form to elements with a specific relation to a given company account (referred to as "This company" here): | Starting point | Target element | Effects of restriction | | --- | --- | --- | | Company account "This company" | Company (Combobox) | - Target element choices are limited to company accounts featuring "This company" as a parent company. | | Address (Combobox) | - Target element choices are limited to addresses from address books owned by "This company". - The ['Add to address book' button](/v1/docs/en/fre-address-button-add-to-address-book) only features address books owned by "This company". If only one [Address book](/v1/docs/en/base-address-book) is applicable, it is selected by default. | | Product (Combobox) | - Target element choices are limited to [Products](/v1/docs/en/base-product) from product catalogs owned by "This company". - The button "Add to product catalog" only features product catalogs owned by "This company". If only one [Product catalog](/v1/docs/en/base-product-catalog) is applicable, it is selected by default. | > [!WARNING] > **IMPORTANT:** > > A "restricted" target element can only feature options that would also be available in an unrestricted context, i.e. for which there is at least read access for the current session and that match the context of the current search ([Company type](/v1/docs/en/base-company-type) or [Product catalog type](/v1/docs/en/base-product-catalog-type)), according to the service configuration of the [Combobox](/v1/docs/en/fre-combo-box-vo). Typically, the action will be used in situations where [Company authorizations](/v1/docs/en/base-company-release) grant read-access to "foreign" content. For company selections, an authorization to "Use as involved" (per business objects type) may be required. Settings: The filter criterion for the restriction or the definition for **This company**, results from the context of the action. Technically this can be achieved either by placing the action in a behavior of a company combobox or by linking a company combobox to a behavior like [Validate element](/v1/docs/en/frebehav-validate) as a target element. ![images/download/attachments/78254775/image2019-4-18_17-39-1-version-1-modificationdate-1628088503773-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image2019-4-18_17-39-1-version-1-modificationdate-1628088503773-api-v2.png) - The element to restrict must be linked as a **Target element**. - The **Include parent company** option is only relevant for selecting companies and controls if "This company" should be listed as a choice together with its sub companies. - The option **Restrict no value too** controls whether the target element dropdown appears empty (without choices) if "This company" is undefined (i.e. has "no value"). - The option **For duplicates also** defines if the action should be applied to one or all instances if the target element belongs to a [Repeatable element](/v1/docs/en/fre-duplicate-element-container-vo) container. **NOTE:** For a practical implementation, it is also decisive at which time or depending on which event in the form the restriction becomes effective or should be refreshed. It is necessary to consider, that the restrictions applied by the action are not cross-checked against existing choices for the business object. If a product choice for line items of a shipment is restricted by the choice for principal, it may be necessary to prevent a change of the principal account if line items have been entered already. Configuration example: This example is based on a very simple case of company hierarchy involving three accounts, which is described in a static text field inside an order form. Next to the company name, the company types (see [Company type](/v1/docs/en/base-company-type)) assigned to each company account are listed in brackets. ![images/download/attachments/78254775/image2019-4-16_14-48-3-version-1-modificationdate-1628088503787-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image2019-4-16_14-48-3-version-1-modificationdate-1628088503787-api-v2.png) On the right side of the form are two comboboxes where companies can be selected as [Company type](/v1/docs/en/base-company-type) for the **Principal** and **Consignee** of the order. According to the company types assigned to the company account, only companies "Xflow" and "Vortex" qualify as choices for **Principal**, whereas all companies qualify as **Consignee**. However, the choice for **Consignee** should be restricted and based on the choice for **Principal**, so only direct child companies of the **Principal** company can be selected as **Consignee**. This is achieved by configuring the following behavior for the **Principal** combobox: ![images/download/attachments/78254775/image2019-4-16_10-7-7-version-1-modificationdate-1628088503802-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image2019-4-16_10-7-7-version-1-modificationdate-1628088503802-api-v2.png) - The behavior is triggered by the [Changed](/v1/docs/en/fretrigger-changed) event and executes the **Actions on "true"** unconditionally, based on a [Static](/v1/docs/en/frebehav-static) behavior. The changed company account will be given to the action. - The single action **Restrict by this parent company** is linked to the **Consignee** as a target element. - The option **Include parent company** is unchecked, since the company assigned as Principal should not be a choice for **Consignee**. - The option **Restrict no value too** is checked, to make sure that there are no options for **Consignee** without a selection for Principal. Effects: Depending on the choice for **Principal**, only the direct child company appears as a choice for **Consignee**: ![images/download/attachments/78254775/image2019-4-16_14-48-13-version-1-modificationdate-1628088503785-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image2019-4-16_14-48-13-version-1-modificationdate-1628088503785-api-v2.png) | No principal | Principal: Xflow | Principal: Vortex | | --- | --- | --- | | ![images/download/attachments/78254775/image2019-4-16_10-27-35-version-1-modificationdate-1628088503798-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image2019-4-16_10-27-35-version-1-modificationdate-1628088503798-api-v2.png) | ![images/download/attachments/78254775/image2019-4-16_10-29-17-version-1-modificationdate-1628088503796-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image2019-4-16_10-29-17-version-1-modificationdate-1628088503796-api-v2.png) | ![images/download/attachments/78254775/image2019-4-16_10-29-42-version-1-modificationdate-1628088503794-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image2019-4-16_10-29-42-version-1-modificationdate-1628088503794-api-v2.png) | Alternative setting: For a comparison here, the following results show choices with the **Include parent company** option checked: | No principal | Principal: Xflow | Principal: Vortex | | --- | --- | --- | | ![images/download/attachments/78254775/image2019-4-16_10-27-35-version-1-modificationdate-1628088503798-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image2019-4-16_10-27-35-version-1-modificationdate-1628088503798-api-v2.png) | ![images/download/attachments/78254775/image2019-4-16_10-32-19-version-1-modificationdate-1628088503792-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image2019-4-16_10-32-19-version-1-modificationdate-1628088503792-api-v2.png) | ![images/download/attachments/78254775/image2019-4-16_10-32-52-version-1-modificationdate-1628088503789-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image2019-4-16_10-32-52-version-1-modificationdate-1628088503789-api-v2.png) |