Creating a Calculation Type (2.7)

First, set up a Calculation Type record:

  1. Go to Calculation Types and click New.

  2. In the New Calculation Type window, select the Condition record type and click Next.

  3. 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.

      Calculation Type 2.7
  4. Click Save.

The Calculation Type record is created.

``