> For the complete documentation index, see [llms.txt](https://docs.dinmo.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.dinmo.io/models/computed-fields/related-fields.md).

# Related Fields

Related fields make a field from a singular related model available for an activation, without adding unnecessary columns to the parent model.

For example, you may activate Transactions and need to map a product attribute such as `product_type`. Instead of enriching the Transactions model with product columns, create a Related field that references `product_type` from the Products model.

The field is then available in the activation mapping.

## When to use a related field

Use a Related field when:

* The field you need for an activation belongs to a related model.
* The parent model is linked to the related model through a `1:1` or `N:1` relationship: each record in the parent model is associated with at most one record in the related model.
* You want to keep the parent model focused on its own data.
* You need to map the related value to a destination field.

Typical use cases include:

* Sending first-party attributes to Meta Conversions API or Google enhanced conversions.
* Including product name, product type, or stock information with recommendation data.
* Adding data from a customer or product model to an activation based on another model.

## Create a related field

1. Choose the parent model where the Related field will be created.
2. Select the singular related model that contains the field you need.
3. Select the related field.
4. Optionally add filters to restrict the data returned.

<figure><img src="/files/oNUfTkvvyYDAjUT7CCk3" alt="Related field configuration with Transactions as the parent model, Products as the related model, and product type as the selected field"><figcaption><p>Select the parent model, related model, and field to make available for activation mapping.</p></figcaption></figure>

DinMo does not calculate a new value: it makes the selected field from the related model available for the activation.

## Availability and limitations

Related fields are live fields. They are designed for activation mappings and are not available in the Segment Builder.

Use an Aggregated field instead when you need to calculate a value from multiple related records, such as the total amount of all transactions for a customer.

## Example: send a product type with transactions

You want to activate Transactions to a destination, but the destination also requires the product type.

1. Create a Related field on **Transactions**.
2. Select **Products** as the related model.
3. Select `product_type` as the related field.
4. Map the Related field in the activation.

The product type is available for this activation without duplicating product data in the Transactions model.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.dinmo.io/models/computed-fields/related-fields.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
