# 소스 필드: 부모 또는 조회의 특정 필드 값을 기본값으로 할당하기

라인 아이템 추가 시, 부모 개체 또는 조회 개체의 특정 필드 값을 기본값으로 할당할 수 있습니다.

{% hint style="warning" %}
소스 필드 값은 라인 아이템이 최초 추가될 때만 할당됩니다.
{% endhint %}

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

### 예시: 기회 제품의 단가를 가격 목록 항목의 단가로 기본값으로 할당하기

{% hint style="info" %}
이 예시에서는 기회 제품에 대한 라인 아이템 편집기를 설정하였습니다.

* **부모:** 기회(`Opportunity`)
* **라인 아이템:** 기회 제품(`OpportunityLineItem`)
* **조회:** 가격 목록 항목(`PricebookEntry`)
  {% endhint %}

기회 제품 추가 시, 선택한 제품의 단가를 기회 제품의 단가 필드에 기본값으로 할당하려고 합니다.

라인 아이템에 정가(`ListPrice`)와 판매 가격(`UnitPrice`) 필드가 추가되어 있습니다. 해당 필드에 조회 개체인 가격 목록 항목(`PricebookEntry`)의 정가(`UnitPrice`) 필드 값을 기본값으로 설정하려고 합니다.

#### 설정 방법

1. 정가와 판매 가격의 소스 필드에서 첫 번째 옵션을 ‘**조회**’로 선택합니다.
2. 두 번째 옵션에서 ‘**정가**’를 선택합니다.

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

#### 결과

선택한 제품들의 단가가 라인 아이템의 정가와 판매 가격 필드에 값으로 할당되는 것을 확인할 수 있습니다.

<figure><img src="/files/oj9fu1yupPrGkhb3wbCE" alt=""><figcaption><p>조회 선택기</p></figcaption></figure>

<figure><img src="/files/aBm1wBK2B15tz7AdQYr1" alt=""><figcaption><p>라인 아이템 편집기</p></figcaption></figure>


---

# 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/builder-setup-steps/setup-line-item-editor/source-field.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.
