# 개체 설정 (Relate Objects)

**Schedule Configurator를 구현하기 위해서는 먼저 Parent 개체, Line-item 개체, Schedule 개체를 지정합니다.**

{% hint style="info" %}
참고로 기회에서 제품 Schedule Configurator를 구현하는 경우 Parent Object는 기회 개체로 Line-item 개체는 기회 제품으로 설정하며 OpportunityLineItemSchedule을 Schedule 개체로 설정합니다. ( Setup에서 Product Schedules Settings를 활성화해야 개체를 사용할 수 있습니다.)
{% endhint %}

<figure><img src="https://3985481653-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FA2fSsDo5KsIVkUoDIV1b%2Fuploads%2FNzp8Ipp6tu5jhYwwF6Ee%2Fimage.png?alt=media&#x26;token=2b794ac1-4b5e-4057-9d18-10ff1dc7d825" alt=""><figcaption></figcaption></figure>

<table><thead><tr><th width="197">항목</th><th width="453">설명</th><th>필수</th></tr></thead><tbody><tr><td>Parent Object</td><td>기회, 견적, 계약 등 일정을 추가할 개체를 의미합니다.</td><td><mark style="color:red;">✔️</mark></td></tr><tr><td>Line-item Object</td><td>기회 제품, 견적 제품 등 Parent Object의 자식 개체를 의미합니다.</td><td></td></tr><tr><td>Schedule Object</td><td>일정이 저장될 개체를 의미합니다.<br><br>💡 <strong>Tip</strong><br>Line-Item을 사용할 경우 Line-Item과 Lookup 관계를 가져야 합니다.<br>Line-Item을 사용하지 않을 경우 Parent Lookup 관계를 가져야 합니다.<br>Schedule Configurator와 Lookup 관계를 가져야 합니다.</td><td><mark style="color:red;">✔️</mark></td></tr></tbody></table>

### Line-item Object Advanced Setting

Line-Item Editor에서 저장된 레코드 불러올 시 정렬 및 조건 등을 설정합니다.

<figure><img src="https://3985481653-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FA2fSsDo5KsIVkUoDIV1b%2Fuploads%2Fp3VdfELTyQZPJieibhOX%2Fimage.png?alt=media&#x26;token=ca4ea0ee-568b-4b2d-ade3-205f65b7e3d5" alt=""><figcaption></figcaption></figure>

<figure><img src="https://3985481653-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FA2fSsDo5KsIVkUoDIV1b%2Fuploads%2F7VTo44pdv0iLGWp6qXwY%2Fimage.png?alt=media&#x26;token=d64cac04-fe31-4e67-a489-f9e6e77e4334" alt=""><figcaption></figcaption></figure>

<table><thead><tr><th width="202">항목</th><th>설명</th></tr></thead><tbody><tr><td>Order By</td><td><p>저장된 Line-Item의 레코드를 불러올 시 정렬을 설정합니다.</p><p>SOQL의 <code>ORDER BY</code> 절을 기재합니다.<br><br>예를 들어 최근에 생성된 날짜(<em>필드: CreatedDate</em>)순으로 내림차순 정렬하고 싶은 경우 <code>CreatedDate DESC</code>로 기재하면 됩니다.</p></td></tr><tr><td>Advanced Condition</td><td>검색 조건을 미리 지정합니다.<br>SOQL의 <code>WHERE</code> 절을 기재합니다.<br><br>예를 들어 활성화(<em>필드: IsActive</em>)된 레코드만 조회하고 싶은 경우 <br><code>IsActive = true</code>로 기재하면 됩니다.</td></tr></tbody></table>
