Loading
Upcoming Mandatory Changes to Public Key Infrastructure (PKI)Read More
Salesforce Enforces New Security Requirements in Summer 2026Read More
Table of Contents
Select Filters

          No results
          No results
          Here are some search tips

          Check the spelling of your keywords.
          Use more general search terms.
          Select fewer filters to broaden your search.

          Search all of Salesforce Help
          Calculate Product Prices Using Price Adjustment Matrix

          Calculate Product Prices Using Price Adjustment Matrix

          Let's look at a scenario where we want to apply custom percentage-based discounts using the Price Adjustment Matrix element.

          Required Editions

          User Permissions Needed
          To create, update, and delete pricing procedures: Salesforce Pricing Design Time User

          Create a Custom Decision Table

          1. From the App Launcher, search for and select Lookup Tables .
          2. Select Decision Table.
          3. Specify these details.
            1. Enter a name and then press Tab to autopopulate the API Name. For our example, we’re calling the decision table, Price Adjustment Matrix Entries.
            2. Select Pricing as the application usage.
            3. Select Advanced as the decision table type.
          4. Click Save & Next.
          5. Specify these decision table details.
            1. Source Object: Price Adjustment Tier.
            2. Set the following condition.
              Set the source object field as Name and the operator as Equals.
            3. Set another condition for the ID.
              Set the source object field as Id and the operator as Equals.
          6. Ensure that the Condition Type is set to All conditions are met (AND).
          7. Specify the result details.
            1. Source Object Field: TierValue.
            2. Column Name: TierValue.
            3. Source Object Field: AdjustmentType.
            4. Column Name: AdjustmentType.
          8. Click Save & Next.
          9. Click Save & Next again.
          10. Click Finish.
          11. Activate your decision table.

          Map the Variables in Your Custom Decision Table

          1. From Setup, in the Quick Find box, find and select Pricing Recipes.
          2. Choose the pricing recipe that you want to modify. For our example, select NGPDefaultRecipe.
          3. On the Price Adjustment Matrix tab, click Modify.
          4. Select the custom decision table created by you. Here, select Price Adjustment Matrix Entries.
          5. Map the following variables.
            1. AdjustmentValue: TierValue
            2. AdjustmentType: AdjustmentType
              When creating price adjustment tier records with AdjustmentType = Percentage, enter the percentage as a whole number. For example, enter 10 for a 10% discount (not 0.10 or 10%).
          6. Save your changes.

          Use the Price Adjustment Matrix Element

          1. Configure a pricing procedure.
          2. Click Add Element iconto add the Pricing Setting element and map these variables.
            • Input Variables
              • Line Item: LineItem
            • Output Variables
              • Price Waterfall: price_water_fall
              • Net Unit Price: NetUnitPrice.
              • Subtotal: ItemNetTotalPrice
          3. Add the List Price element to fetch the base price of the product.
            Under Lookup Table Details, select the Price Book Entries decision table and map these variables.
            • Input Rule Variables
              • Product: Product
              • Price Book: PriceBooks
              • Product Selling Model: ProductSellingModel
            • Input Variables
              • Quantity: LineItemQuantity
            • Output Variables
              • List Price: ListPrice
              • Subtotal: ItemNetTotalPrice
          4. Add the Price Adjustment Matrix element.
            The input rule variables shown below are specific to this example. Your variables will differ based on the source objects you selected in your custom decision table and the conditions and results you configured.
            Under Lookup Table Details, select the Price Adjustment Matrix Entries decision table and map these variables.
            • Input Rule Variables
              • Product: Product
              • Price Book: PriceBooks
              • Product Selling Model: ProductSellingModel
            • Input Variables
              • Quantity: LineItemQuantity
              • Input Unit Price: ListPrice
          5. Click Pricing Procedure Builder iconand select Include in Output.
          6. Finally, set your preferences to view pricing information, profile access, and rank information.
          7. Save your procedure.
          8. Click Simulate to test your procedure. Enter the input values for your product and click Simulate again.
           
          Loading
          Salesforce Help | Article