Loading
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 Attribute-Based Discounts

          Calculate Attribute-Based Discounts

          Determine the price of a product based on the discounts configured for selected price impacting attributes.

          Required Editions

          Available in: Lightning Experience
          Available in: Enterprise, Unlimited, and Developer Editions of Revenue Cloud where Salesforce Pricing is enabled
          User Permissions Needed
          To create, update, and delete pricing procedures: Salesforce Pricing Design Time User

          Let's use a scenario involving a large quantity of laptop purchases. We want to add a $10 override for any customer who purchased a laptop with a display resolution over 4K.

          Create an Attribute Based Adjustment Record

          1. Create an attribute based adjustment record.
          2. Specify these details.
            1. Price Adjustment Schedule: Standard Price Adjustment Tier
            2. Product: Laptop
            3. Adjustment Type: Override
            4. Adjustment Value: 10
            5. Effective From: 01-01-2025
            6. Product Selling Model: One Time
          3. Click Next.
          4. Set the following condition.
            1. Attribute: Display. (The price impacting attribute will be pre-populated)
            2. Operator: Equals
            3. Value: 4K Built-in Display
          5. Save your changes.
          6. On the Details tab, on the Standard Attribute Based Adjustment page, select Active.
          7. Save your changes.
          Important
          Important We recommend refreshing the Attribute Discount Entries decision table to ensure that the attribute based adjustment records are available.

          Create a Constant for a Attribute Based Adjustment Variable

          1. Create a pricing procedure. To create a pricing procedure, follow the first 5 steps in Configure Your Pricing Procedure.
          2. On the Pricing Procedure builder canvas, click Pricing Elements icon.
          3. On the Resource Manager panel, click Add Resource.
          4. In the Add New Resource page, specify these details.
            1. Resource Type: Constant
            2. Resource Name: AttributePAS
            3. Data Type: Text
            4. Default Value: Enter the attribute based adjustment ID from the browser.
              You can locate the value of your variable by going to the associated record. For example, to locate a price adjustment schedule ID, open the price adjustment schedule record page. The price adjustment schedule ID is shown in the browser’s URL. Price Adjustment Tier Browser ID
          5. Save your changes.

          Add the Attribute-Based Price Element

          1. 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
          2. 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
          3. To add the Attribute-Based Price element, search for and add the Attribute Discount Entries decision table and map these variables.
            • Input Rule Variables
              • Price Adjustment Schedule: AttributePAS
              • Product: Product
              • Product Selling Model: ProductSellingModel
              • Effective From: EffectiveFrom
              • Effective To: EffectiveFrom
            • Input Variables
              • Attribute Name: Attribute
              • Attribute Value: AttributeValue
              • Quantity: LineItemQuantity
              • Is Price Impacting: PriceImpactingAttribute
              • Input Unit Price: ListPrice
          4. Click Pricing Procedure Builder iconand select Include in Output.
          5. Finally, set your preferences to view pricing information, profile access, and rank information.
          6. .
          7. Save your procedure.
          8. Click Simulate to test your procedure.
          9. Provide the following attribute-specific input values.
            • AttributeValue: 4k Built-in Display
            • PriceImpactingAttribute: true
            • Attribute: Display
          10. Click Simulate again.
            The price waterfall shows the attribute-based discounts used to calculate the final price of the laptops, confirming that your procedure is working as expected.
            Attribute Discount Waterfall
           
          Loading
          Salesforce Help | Article