--- title: "Mail address company attribute" slug: "base-company-attribute-mail-adress-resolver" updated: 2026-04-16T06:40:51Z published: 2026-04-16T06:40:51Z canonical: "docs.lobstersoftware.com/base-company-attribute-mail-adress-resolver" --- > ## 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. # Mail address company attribute *See also:* [Mail address address attribute](/v1/docs/en/base-address-attribute-mail-address-resolver) value resolver > [!NOTE] > Value resolver – Abstract > > **Purpose:** This value resolver searches the communication information attributes of the address of a "Company and address attribute" specified via the **Company type** parameter for entries for the [Communication type](/v1/docs/en/base-communication-type) "E-mail" with the specified **Context** and returns a list of the e-mail addresses found. > > > [!TIP] > > Tooltip > > > > - **Usage**: An entity that can have "Company and address attributes" is expected as an *input value*. The value resolver collects all e-mail addresses from communication information attributes matching the **Context** of the company defined for the specified **Company type** by "Company attribute" and returns them as a string list. > > - **Parameter**: > > - **Context communication info** (required field): A search criterion that has to exactly match (incl. upper/lower case letters) the "Context" field of the searched communication information attributes. > > - **Company type** (required field): A single selection for the [Company type](/v1/docs/en/base-company-type), specifying which "Company and address attribute" to search for e-mail addresses. > > - **NOTE:** The access to the communication information attributes is performed without regard to access restrictions for the company account in question. ![images/download/attachments/91131840/image2022-1-20_11-4-35-version-1-modificationdate-1642673075407-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image2022-1-20_11-4-35-version-1-modificationdate-1642673075407-api-v2.png) The [Mail address company attribute](/v1/docs/en/base-company-attribute-mail-adress-resolver) value resolver searches the communication information attributes of the company address (`company.address`) for a "Company and address attribute" specified by the **Company type** parameter for entries of the "E-mail" (`EMAIL`) [Communication type](/v1/docs/en/base-communication-type) with the specified **Context**. The *input value* expects an entity of the "Attribute owners" group type, which supports "Company and address attributes". If successful, the *return value* of the value resolver is a list of strings (`string[]`) containing all non-empty values of communication information attributes of the searched address whose context exactly matches (including case sensitivity) the value in the **Context** parameter. **NOTE:** Even a single match is returned as an element of a list, so a value resolver (e.g. [List item](/v1/docs/en/core-list-item-resolver) or [Rule list resolver](/v1/docs/en/core-list-rule-resolver)) may be needed to directly access the single value. However, this does not matter in the typical environment within a [E-mail](/v1/docs/en/core-send-mail-actor) event action, since strings or lists of strings are accepted there when addressing e-mails (in the "Recipient", "CC" and "BCC" parameters). The *return value* of the resolver, on the other hand, is "no value" (`null`) if one of the following conditions applies: - The *input value* does not support "Company and address attributes" according to the type. - The *input value* does not have a "Company and address attribute" for the specified **Company type**. - A "Company and address attribute" of the specified **Company type** was found, but at least one of the following conditions applies: - The "Company" (`company`) field does not refer to a company. **NOTE:** The same attribute possibly refers to an address (`address` field) instead. Evaluation of this address (address) then enables the [Mail address address attribute](/v1/docs/en/base-address-attribute-mail-address-resolver) value resolver. - The company address does not have any communication information attributes that fulfill all of the following conditions: - The attribute refers to the "E-mail" (`EMAIL`) [Communication type](/v1/docs/en/base-communication-type) in the "Type" (`communicationType`) field. - The attribute refers exactly to the value in the **Context** parameter of the value resolver in the "Context" field (`communicationContext`). - The attribute defines any text in the "Value" field (`communicationValue`). **NOTE:** Whether this text meets formal criteria for an e-mail address is not examined. **NOTE:** The evaluation of a company address by the [Mail address company attribute](/v1/docs/en/base-company-attribute-mail-adress-resolver) value resolver is performed without any regard to access restrictions that apply in the execution context ([Role of session](/v1/docs/en/base-session-role-value), [Company of session](/v1/docs/en/base-session-company-account-value), [Run as](/v1/docs/en/base-run-as-actor)) for the relevant company account. The value resolver can therefore also access the communication information of [Companies/Clients](/v1/docs/en/base-company-account) that do not appear, for example, in a [Search](/v1/docs/en/core-search) or overview with the same login data. ## Configuration | The **Context communication info** parameter must be filled with any static text as a required field. The value resolver only returns values from communication information whose "context" (`communicationContext`) matches the value specified here exactly (incl. upper/lower case). **NOTE:** Since the parameter cannot be left "empty", the value resolver categorically does not consider communication information without context. --- The **Company type** parameter requires a single selection based on the dynamic enumeration [Company type](/v1/docs/en/base-company-type) as a required field. As shown in the image, the [Combobox](/v1/docs/en/fre-combo-box-vo) element supports a search function. **IMPORTANT:** If [Enumeration filters](/v1/docs/en/core-dynamic-enum-filter) are applicable for the enumeration in question in the context of a session, they also restrict the selection for the **Company type** in the course of configuration. However, [Enumeration filters](/v1/docs/en/core-dynamic-enum-filter) have no influence on the evaluation of the value resolver at runtime. | ![images/download/attachments/91131840/image2022-1-20_11-5-14-version-1-modificationdate-1642673114335-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image2022-1-20_11-5-14-version-1-modificationdate-1642673114335-api-v2.png) | | --- | --- | ## Example The bill-to party ([Company type](/v1/docs/en/base-company-type) `INV`) specified within the order via a "Company and address attribute" is notified by e-mail about selected working state changes for a business object of the "Orders" type (see [Orders](/v1/docs/en/ord-order)). As the bill-to party for orders, only [Companies/Clients](/v1/docs/en/base-company-account) listed as company accounts in **Lobster Data Platform/Orchestration** should be used. The "Company and address attribute" can therefore only be expressed as a "Company attribute". Notifications for the order status relevant to the "Bill-to party" are only sent to e-mail addresses specified in the context "INV" (for "invoice") specified by the address in the input form: ![images/download/attachments/91131840/image2022-1-20_11-5-51-version-1-modificationdate-1642673151140-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image2022-1-20_11-5-51-version-1-modificationdate-1642673151140-api-v2.png) - The screenshot shows the **Communication info** specified in the company account of "ZWORX Ltd". - Each of the three stored e-mail addresses refers to a specific **Context**. - However, all communication information attributes refer to the same **Value**. Obviously, the same address should always be used regardless of the **Context**. Configuration: | In accordance with requirements, a notification is sent to all addresses stored for the "INV" and "AOB" contexts. This is guaranteed with the following configuration within a [E-mail](/v1/docs/en/core-send-mail-actor) event action: - In the **Recipient** tab, the ![images/s/-95e2zf/9012/8yg2g7/_/images/icons/emoticons/add.svg](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/add(46).svg) icon adds two instances for recipient values. - For each instance, a [Mail address company attribute](/v1/docs/en/base-company-attribute-mail-adress-resolver) value resolver is defined that directs the [Company type](/v1/docs/en/base-company-type) "Bill-to party" and one of the two relevant **Context** values. Both can return a list of e-mail addresses. In the example of "ZWORX Ltd.", the same address is assigned as the recipient in each case with the address data shown above. Even if duplicates in the recipient list are typically ignored by the mail system, at least in the e-mail object from **Lobster Data Platform/Orchestration** (see [E-mails](/v1/docs/en/administration-system-mail)), the same address appears multiple times if the e-mail is saved: ![images/download/attachments/91131840/image2022-1-20_11-8-44-version-1-modificationdate-1642673324175-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image2022-1-20_11-8-44-version-1-modificationdate-1642673324175-api-v2.png) | ![images/download/attachments/91131840/image2022-1-20_11-9-47-version-1-modificationdate-1642673387296-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image2022-1-20_11-9-47-version-1-modificationdate-1642673387296-api-v2.png) | | --- | --- | | The variant of the configuration shown on the right systematically avoids the problem of any duplication: - In a [Create list](/v1/docs/en/core-create-list-resolver) value resolver, the ![images/s/-95e2zf/9012/8yg2g7/_/images/icons/emoticons/add.svg](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/add(46).svg) icon is used to create two instances for values for which, similar to the example above, the two [Mail address company attribute](/v1/docs/en/base-company-attribute-mail-adress-resolver) value resolvers are configured with the [Company type](/v1/docs/en/base-company-type) "Bill-to party" and one of the relevant **Context** values each. The return value is therefore a list whose entries are lists of text values (`string[][]`). This would result in the same recipient list as the previous configuration. - The nested list, which may contain duplicates, is passed to a [Collect values](/v1/docs/en/core-collect-resolver) value resolver via concatenation. For this, the options **Join** **Collections** and **Unique values** are set, so that a list of text values (`string[]`) is returned as a result, which now contains no duplicates. **NOTE:** The **Value to collect** parameter is not required here, since the entire entry is included in the results list. Runtime example: ![images/download/attachments/91131840/image2022-1-20_11-8-5-version-1-modificationdate-1642673285466-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image2022-1-20_11-8-5-version-1-modificationdate-1642673285466-api-v2.png) - Based on the data shown above for the company account, "ZWORX Ltd." is now easily addressed, although this e-mail address is valid for the "AOB" and "INV" contexts. | ![images/download/attachments/91131840/image2022-1-20_11-7-20-version-1-modificationdate-1642673240676-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image2022-1-20_11-7-20-version-1-modificationdate-1642673240676-api-v2.png) |