# 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="https://3800415611-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNuSjRiJMvVhtdzNDzWBi%2Fuploads%2Fgit-blob-488f96fb99ebc2f9abba25cf3d937625ff81c901%2Fimage%20(14)%20(2).png?alt=media" 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="https://3800415611-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNuSjRiJMvVhtdzNDzWBi%2Fuploads%2Fgit-blob-484a527ec12559c8a81ae3a123e09d828df57c52%2Fimage%20(17)%20(2).png?alt=media" alt=""><figcaption></figcaption></figure>

<figure><img src="https://3800415611-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNuSjRiJMvVhtdzNDzWBi%2Fuploads%2Fgit-blob-89d95af476c119839b01bdc0a13202bb5b3b6ed1%2Fimage%20(19)%20(2).png?alt=media" 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>
