# Linked objects setup

To implement the Schedule Configurator, you first need to specify a Parent object, a Line-item object, and a Schedule object.

{% hint style="info" %}
For example, if you want to build a configurator to allow you to create schedule to an opportunity, you would set the Parent object to the Opportunity object, the Line-item object to the Opportunity Product object, and the Schedule object to the OpportunityLineItemSchedule object.( You need to enable Product Schedules Settings in Setup before you can use the object.)
{% endhint %}

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

<table><thead><tr><th width="197">Item</th><th width="453">Description</th><th>Req.</th></tr></thead><tbody><tr><td>Parent Object</td><td>The object to which you want to add a line-item configurator, such as an opportunity, quote, contract.</td><td><mark style="color:red;">✔️</mark></td></tr><tr><td>Line-item Object</td><td>The Line-item object is the Junction which connects the other two objects. For example, the OpportunityProduct, QuoteLineItem objects.</td><td></td></tr><tr><td>Schedule Object</td><td><p>The object where the schedule will be stored.<br><br>💡 <strong>Tip</strong><br>If you use Line-Item, you must have a Lookup relationship with Line-Item.</p><p>If you are not using Line-Item, you must have a Lookup relationship with Parent.</p><p>You must have a Lookup relationship with Schedule Configurator.</p></td><td><mark style="color:red;">✔️</mark></td></tr></tbody></table>

### Line-item Object Advanced Setting

Set sorting, conditions, and more when importing saved records in the Line-Item Editor.

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

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

<table><thead><tr><th width="202">Item</th><th>Description</th></tr></thead><tbody><tr><td>Order By</td><td><p>Sets the sorting when returning records for a saved line-item. Enter the <code>ORDER BY</code> clause in SOQL.<br></p><p>For example, if you want results to appear in descending date order, you can write <code>CreatedDate DESC</code>.</p></td></tr><tr><td>Advanced Condition</td><td>Specify a pre-filter condition to restrict the results users will see. Enter the <code>WHERE</code> clause in SOQL.<br><br>For example, if you want users to see only records that are active (field: isActive), you can write <code>IsActive = true</code>.</td></tr></tbody></table>


---

# 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-schedules/undefined/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.
