# Relate Objects

The first step in configuring the builder is to define the relationships between the objects that will be used in the Line Item Editor. These relationships must follow a Junction object structure, requiring the configuration of Parent, Line Item, and Lookup objects.

<figure><img src="/files/dD1diIRu3Urrbg2BQrXo" alt=""><figcaption></figcaption></figure>

### Configuration Steps

{% stepper %}
{% step %}
[**Parent Object**](/smallbuilder-line-items/builder/builder-setup-steps/relate-objects/parent-object.md)

The parent object is the master object for the line item object and must have a Master-Detail or Lookup relationship with it. The Line Item Editor is executed from the record page of the parent object.
{% endstep %}

{% step %}
[**Line Item Object**](/smallbuilder-line-items/builder/builder-setup-steps/relate-objects/line-item-object.md)

The line item object stores additional details entered after selecting reference data.
{% endstep %}

{% step %}
[**Lookup Object**](/smallbuilder-line-items/builder/builder-setup-steps/relate-objects/lookup-object.md)

The lookup object is referenced by the line item object. Users select lookup records, which are then used to create line item records.
{% endstep %}
{% endstepper %}

### Example: Reconfiguring the Opportunity Product Editing Screen

To manage multiple products related to an Opportunity, the OpportunityLineItem object is used. This object references PricebookEntry to retrieve product and pricing information. Using SmallBuilder Line Items, we will reconfigure this standard Opportunity Product registration screen.

* **Parent Object:&#x20;**<mark style="color:orange;">**Opportunity**</mark>\
  Serves as the parent object linking multiple products and maintains a Master-Detail relationship with OpportunityLineItem.
* **Line Item Object:&#x20;**<mark style="color:orange;">**OpportunityLineItem**</mark>\
  Stores product-related data such as sales price, quantity, and total amount and is linked to the Opportunity.
* **Lookup Object:&#x20;**<mark style="color:orange;">**PricebookEntry**</mark>\
  Retrieves product names and pricing information and is referenced by OpportunityLineItem through a Lookup relationship.

<figure><img src="/files/E34tIJveVkBPNIQ5fzFT" alt=""><figcaption><p>OpportunityLineItem is a Junction object that links Opportunity and PricebookEntry, enabling the management of product information for specific opportunities.</p></figcaption></figure>


---

# Agent Instructions: 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:

```
GET https://help.smallbuilder.com/smallbuilder-line-items/builder/builder-setup-steps/relate-objects.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
