Source Field: Assigning Default Values from Parent or Lookup Fields
Last updated
Last updated
When adding Line Items, you can assign specific field values from the Parent Object or Lookup Object as default values.
Source field values are only assigned when a Line Item is added for the first time.
When adding Opportunity Products, assign the selected productβs Unit Price as the default value for the Unit Price field in the Line Item.
The Line Item includes both List Price and Unit Price fields. These fields will be populated with values from the Unit Price field in the Lookup Object (PricebookEntry).
In the source field setting for List Price and Unit Price, select Lookup as the first option.
For the second option, select Unit Price.
The selected productsβ Unit Price is assigned as the default value to the List Price and Unit Price fields in the Line Item.
This example demonstrates the configuration of a Line Item Editor for Opportunity Products:
Parent: Opportunity
Line Item: OpportunityLineItem
Lookup: PricebookEntry