--- title: "Define record mapping query settings" slug: "define-record-mapping-query-settings" description: "Learn how to set cross company and time validation settings for queries in message processing to enhance data accuracy and integration efficiency." tags: ["Task topic"] status: "update" updated: 2026-10-05T12:03:18Z published: 2026-10-05T12:03:18Z canonical: "docs.staedean.com/define-record-mapping-query-settings" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.staedean.com/llms.txt > Use this file to discover all available pages before exploring further. # Define record mapping query settings When you run a message, a query is applied. For this query, you can define several specific settings: - Cross company: If you run a message, the query is done in the company where you started the message. However, sometimes, for a specific record, it can be required to read data from another company. For example, if you run a message for a purchase order, you can read the data of a related sales order in another company. - Time validation: If some record is valid for a specific time period, by default, the time validation uses the currently valid record. You can disable the time validation. As a result, the first available record is used. This record does not need to be the currently valid record. For example, addresses are valid during a specified time period. If time validation is applied, the currently valid address is used. If time validation is disabled, the address is used with the first time period. ### Steps 1. Click **Connectivity** **studio - Integration Design**. 2. On the **Message** tab, in the list, click the link in the desired message. 3. In the **Mapping** section, in the Target record list, find and select the desired record. 4. Click the **Query** tab. 5. Sub-task: Define cross company settings. 1. You can define if the query is applied: In the **Cross company** field, select the desired option. > [!NOTE] > **Note** > > Only use the cross company option to read data from other companies than the current company. Not to set or change data in other companies. - Only to the company from which the message is run. Select **No**. - Cross company. Select **Yes**. 2. You can apply the cross company query to: In the **Company range** field, enter or select a value. - All companies. Do not enter a value in this field. - Specific companies. Enter or select the desired companies in this field. 6. Sub-task: Define time validation settings. 1. By default, time validation is applied when you query records which are valid during a specified time period. You can disable the time validation. Select **Yes** in the **Disable time validation** field. 7. Close the page.