> For the complete documentation index, see [llms.txt](https://help.smallbuilder.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.smallbuilder.com/smallbuilder-line-items/builder/builder-setup-steps/relate-objects/line-item-object/set-object-and-parent-reference-field.md).

# Set Object and Parent Reference Field

### Configuration Based on Parent Object

The builder provides automatic configuration support specifically for standard Opportunity, Quote, and Order objects. If the parent object is one of these, you can choose between the following two configuration methods:

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

<table data-header-hidden><thead><tr><th width="100"></th><th></th></tr></thead><tbody><tr><td><strong>1</strong></td><td><a href="#standard-automatic-configuration"><strong>Standard: Automatic Configuration</strong></a><br>This option automatically sets up the required configurations for the Line Item and Lookup objects based on the parent object. It allows you to set up the editor quickly and easily.</td></tr><tr><td><strong>2</strong></td><td><a href="#manual-configuration-customize-your-line-items"><strong>Manual Configuration: Customize Your Line Items</strong></a><br>To configure the editor using custom objects, choose the Manual Configuration option. This allows you to define the parent, line item, and lookup objects manually, giving you flexibility to design the editor.</td></tr></tbody></table>

### Standard: Automatic Configuration

This option is available exclusively for standard objects such as Opportunity, Quote, or Order. It enables automatic setup of required configurations for the Line Item and Lookup objects, allowing for rapid configuration without manual effort.

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

#### Example: Automatic Configuration for Opportunity

When you apply standard settings for the **Opportunity** parent object, the following are configured automatically:

* **Line Item Object**
  * Configured as **OpportunityLineItem**
  * Essential fields such as Unit Price, Quantity, and Total Price are automatically added.
* **Lookup Object**
  * Configured as **PricebookEntry**
  * Fields required for Lookup (e.g., Product Name, Unit Price) and filter conditions (e.g.m Pricebook2Id) are automatically set.

| Parent Object   | Line Item Object    | Lookup Object  |
| --------------- | ------------------- | -------------- |
| **Opportunity** | OpportunityLineItem | PricebookEntry |
| **Quote**       | QuoteLineItem       | PricebookEntry |
| **Order**       | OrderItem           | PricebookEntry |

### Manual Configuration: Customize Your Line Items

If your parent object is a custom object or you prefer custom setup, choose Manual Configuration.

<figure><img src="/files/7jR1dbZz80XcdN9d8dB7" alt=""><figcaption></figcaption></figure>

Manual Configuration options include:

<figure><img src="/files/31pPajtb5zIFKQrJYfkw" alt=""><figcaption></figcaption></figure>

<table><thead><tr><th width="100"></th><th width="204"></th><th></th></tr></thead><tbody><tr><td><strong>1</strong></td><td><strong>Object</strong></td><td>Select a child object of the parent to act as the Line Item object.</td></tr><tr><td><strong>2</strong></td><td><strong>Parent Reference Field</strong></td><td>Specify the field in the Line Item object that references the parent object. This field automatically assigns the parent when a Line Item is saved.</td></tr></tbody></table>


---

# 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://help.smallbuilder.com/smallbuilder-line-items/builder/builder-setup-steps/relate-objects/line-item-object/set-object-and-parent-reference-field.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.
