Creating a Calculation Type (2.7)
First, set up a Calculation Type record:
-
Go to Calculation Types and click New.
-
In the New Calculation Type window, select the Condition record type and click Next.
-
Enter the following:
-
Calculation Type Name: Total Fee per Order.
-
External Id: totalfeeperorder.
-
Calculation Method: Increase Price.
-
Unit of Measure: Percent.
-
Apply Condition Type: First matching condition.
-
Condition Fields Update Type: Real-Time.
-
Level Based On: Order Line Items.
-
Level Formula: enter the following:
{ "operator": "sum", "items": [ "TotalForDiscount__c" ] }-
The current user must have access to all the fields listed in the Condition Fields List field.
-
Do not enter any values in the Condition Fields List field. This field will be automatically filled in later.
-
-
-
Click Save.
The Calculation Type record is created.