Create a field expression to update record fields based on certain predefined criteria and reduce the need for manual updates.
To create a field expression
Go toADMIN SETUP>Product Administration>Field Expressions.
Click Create New to open a New Field Expression pop-up.
Enter the following details:
Field
Description
Name
Enter the name of the field expression
Is Active
Turn this button on to activate the field expression.
Is Modifiable
Turn this button on to enable editing of the field expression.
Expression Type
This field is populated by default with the value Field Update.
Expression Context
This field is populated by default with the value Record Update.
Source Object
This field is populated by default with the value Line Item.
Scope
Select one of the following values that are displayed in the dropdown:
Product: to apply field expression on the product line items.
Product Group: to apply field expression on the product group level.
Header Level: to apply field expression on fields at header level.
Based on your selection, you must select a product or product group.
Click Create. A field expression is created and you are redirected to the details page.
Click Expression under Filter Expression, and use the formula builder to create a formula.
For adding an expression, you can choose from three fields: Line Item, Product, and Attribute. Select any of these fields to create an expression.
Go to the Field tab and search for your desired field from the list.
Click the arrow next to the field name to view and select its related child fields. The formula expression, determined by the selected object-field and/or subfield, appears on the right panel of the application.
Click Insert to add it to the expression.
Go to theFunctionstab, select a function from the list, and clickInsertto add it to the expression.
Click any operator available below the expression window to add it to the expression.
Continue building your expression.
Click Save.
In Update Object, select one of the following from the drop-down.
Product Attribute
Line Item
In Update Field, select the field on which you want to apply the field expression.
Click Expression under Value Expression, and refer Step 5a to Step 5g to use the formula builder to create a formula.