# 1. 개체 연결

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

{% hint style="info" %}
참고로 기회에서 제품 Line-item Configurator를 구현하는 경우 Parent Object는 기회 개체로 Line-item 개체는 기회 제품으로 설정하며 제품(Product)을 Lookup 개체로 설정합니다.
{% endhint %}

<figure><img src="/files/dRAcawzAUaNCzoNwW7dI" 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>기회, 견적, 출장 등 Line-item Configurator를 추가할 개체를 의미합니다.</td><td><mark style="color:red;">✔️</mark></td></tr><tr><td>Line-item Object</td><td>기회 제품, 견적 행아이템, 출장 목적지 등 Parent Object의 자식 개체를 의미합니다.</td><td><mark style="color:red;">✔️</mark></td></tr><tr><td>Lookup Object</td><td>제품, 거래처 등 Line-item이 참조하는 개체를 의미합니다.<br><br>💡 <strong>Tip</strong><br>Line-Item Editor만 사용하고 싶은 경우 <strong>Block adding items</strong>를 선택하시면 됩니다.<br>조건에 따라 제어하려면 바로 아래에 보이는 입력란에 Parent 필드의 API 명을 기재하면 됩니다. (필드값은 <code>true</code> 또는 <code>false</code>여야 합니다.)</td><td><mark style="color:red;">✔️</mark></td></tr></tbody></table>

### Line-item Object Advanced Setting

Line-Item Editor에서 저장된 레코드 불러올 시 정렬 지정 및 삭제 제어 등 설정합니다.

<figure><img src="/files/2Q7zv2gaOk7xNiAfMDi4" 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>Delete Controller Field</td><td>지정한 필드 값에 따라 Line-Item 레코드 삭제를 제어합니다. Line-Item 필드여야 하고, 해당 필드값은 <code>true</code> 또는 <code>false</code> 여야 합니다.<br><br>예를 들어 Parent 또는 Lookup의 상태 값에 따라 Line-Item 레코드 삭제를 제어하고 싶은 경우, Line-Item 개체에 Boolean형 수식 필드를 만들어 활용할 수 있습니다.</td></tr></tbody></table>

### Lookup Object Filter

Lookup Selector 검색 시 키워드 매칭 방법 및 필터 등 설정합니다.

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

<table><thead><tr><th width="205">항목</th><th width="445">설명</th><th>필수</th></tr></thead><tbody><tr><td>Keyword Field</td><td>Lookup 레코드 검색 키워드로 사용할 필드를 선택합니다.</td><td><mark style="color:red;">✔️</mark></td></tr><tr><td>Match Condition</td><td><p>키워드 검색 방식을 선택합니다.</p><ul><li>Contains - 키워드가 포함된 값을 검색합니다.</li><li>Start with - 키워드로 시작하는 값을 검색합니다.</li></ul><p>기본값 : Contains</p></td><td><mark style="color:red;">✔️</mark></td></tr><tr><td>Order By</td><td><p>Lookup 검색 시 정렬을 설정합니다.</p><p>SOQL의 <code>ORDER BY</code> 절을 기재합니다.<br><br>예를 들어 제품 코드(<em>필드: ProductCode</em>) 순으로 오름차순 검색하고 싶은 경우 <code>ProductCode ASC</code>로 기재하면 됩니다.</p></td><td></td></tr><tr><td>Advanced Condition</td><td>검색 조건을 미리 지정합니다.<br>SOQL의 <code>WHERE</code> 절을 기재합니다.<br><br>예를 들어 활성화(<em>필드: IsActive</em>)된 레코드만 조회하고 싶은 경우<br><code>IsActive = true</code>로 기재하면 됩니다.<br><br>💡 <strong>Tip</strong><br>Parent의 필드값을 조건문에 지정하고 싶은 경우 <code>{$Parent.필드명}</code>를 이용해 바인딩할 수 있습니다.<br>예) Lookup Selector 검색 시 기준을 Parent의 통화와 일치한 레코드만 조회하고 싶은 경우 아래와 같이 작성합니다.<br><code>CurrencyIsoCode = {$Parent.CurrencyIsoCode}</code></td><td></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/ko/smallbuilder-line-items/builder/setup/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.
