Loading
The Trailblazer Community is now read-only Read More
Create a Pricing Procedure for Sales Agreements

Create a Pricing Procedure for Sales Agreements

Pricing designers can create pricing procedures that calculate the guidance prices of products with volume-based discounts, attribute-based discounts, manual discounts, or a combination of them all. Pricing procedures consist of pricing elements and resources. Pricing elements are logical, mathematical, or price calculation operations that act as steps in a pricing procedure. Resources are placeholders for values in pricing elements, and can be constants or variables. Pricing procedures call the appropriate lookup tables to perform pricing calculations.

Required Editions

Available in: Lightning Experience
Available in: Enterprise, Unlimited, and Developer Editions
User Permissions Needed
To create, update, and delete pricing procedures: Salesforce Pricing Design Time
To use pricing procedures: Salesforce Pricing Run Time
Note
Note In this topic, we show you how to create pricing procedures to calculate guidance prices with volume-based discounts, attribute-based discounts, and manual discounts. These pricing procedures use the predefined NGPDefaultRecipe pricing recipe, the predefined standard price adjustment matrices in the NGPDefaultRecipe pricing recipe, and the predefined SalesTransactionContext context definition. Remember, you can extend the pricing recipes, price adjustment matrices, and context definitions, and design the pricing procedures to meet your business needs.

Create a Pricing Procedure for Volume-Based Discounts for Sales Agreements

Calculate guidance prices with volume-based discounts. The guidance price is calculated by subtracting the volume-based discount from the list price of a product.

  1. Create a pricing procedure with the Pricing usage type and the SalesTransactionContext context definition.
  2. Open a pricing procedure version in the Pricing Procedure Builder.
  3. Add the Pricing Setting element to the builder canvas, and specify its input and output variables.
    1. For Line Item, enter LineItem.
    2. For Price Waterfall, enter price_water_fall.
    3. For Net Unit Price, enter NetUnitPrice.
    4. For Subtotal, enter ItemNetTotalPrice.
  4. Add the List Price element after the Pricing Setting element in the builder canvas, and specify its input and output variables.
    1. For Lookup Table Details, enter Price Book Entries V2.
    2. For Product, enter Product.
    3. For Product Selling Model, enter ProductSellingModel.
    4. For Price Book, enter PriceBooks.
    5. For Quantity, enter LineItemQuantity.
    6. For List Price, enter ListPrice.
    7. For Subtotal, enter Subtotal.
  5. Add the Volume Discount element after the List Price element to the builder canvas, and specify its input and output variables.
    1. For Lookup Table Details, enter Volume Discount Entries.
    2. For Price Adjustment Schedule, enter PriceAdjustmentSchedule.
    3. For Lower Bound, enter LineItemQuantity.
    4. For Product, enter Product.
    5. For Upper Bound, enter LineItemQuantity.
    6. For Product Selling Model, enter ProductSellingModel.
    7. For Effective From, enter EffectiveFrom.
    8. For Effective To, enter EffectiveTo.
    9. For Quantity, enter LineItemQuantity.
    10. For Input Unit Price, enter ListPrice.
    11. For Net Unit Price, enter ListPrice.
    12. For Subtotal, enter Subtotal.
  6. Save your changes.
  7. Simulate your pricing procedure, and make changes as necessary.
  8. When you’re satisfied, activate the pricing procedure version.

Create a Pricing Procedure for Attribute-Based Discounts for Sales Agreements

Calculate guidance prices with attribute-based discounts. The guidance price is calculated by subtracting the attribute-based discount from the list price of a product.

  1. Create a pricing procedure with the Pricing usage type and the SalesTransactionContext context definition.
  2. Open a pricing procedure version in the Pricing Procedure Builder.
  3. Add the Pricing Setting element to the builder canvas, and specify its input and output variables.
    1. For LineItemId, enter LineItem.
    2. For NetUnitPrice, enter NetUnitPrice.
    3. For Subtotal, enter ItemNetTotalPrice.
    4. For PriceWaterfall, enter price_water_fall.
  4. Add the List Price element after the Pricing Setting element in the builder canvas, and specify its input and output variables.
    1. For Lookup Table Details, enter Price Book Entries V2.
    2. For Product2Id, enter Product.
    3. For ProductSellingModelId, enter ProductSellingModel.
    4. For Pricebook2Id, enter PriceBooks.
    5. For Quantity, enter LineItemQuantity.
    6. For Subtotal, enter Subtotal.
    7. For ListPrice, enter ListPrice.
  5. Add the Attribute-Based Price element to the builder canvas, and specify its input and output variables.
    1. For Lookup Table Details, enter Attribute Discount Entries.
    2. For PriceAdjustmentScheduleId, enter PriceAdjustmentSchedule.
    3. For Product2Id, enter Product.
    4. For ProductSellingModelId, enter ProductSellingModel.
    5. For EffectiveFrom, enter EffectiveFrom.
    6. For EffectiveTo, enter EffectiveTo.
    7. For AttributeValue, enter AttributeValue.
    8. For Quantity, enter LineItemQuantity.
    9. For IsPriceImpacting, enter PriceImpactingAttribute.
    10. For AttributeName, enter AttributeKeyName.
    11. For InputUnitPrice, enter ListPrice.
    12. For NetUnitPrice, enter ListPrice.
    13. For Subtotal, enter Subtotal.
  6. Save your changes.
  7. Simulate your pricing procedure, and make changes as necessary.
  8. When you’re satisfied, activate the pricing procedure version.

Create a Pricing Procedure for Manual Discounts for Sales Agreements

Calculate guidance prices with manual discounts. The guidance price is calculated by subtracting the manual discount from the list price of a product. Create constants to specify the discount value and type, and specify the constants in the Manual Discount pricing element.

  1. Create a pricing procedure with the Pricing usage type and the SalesTransactionContext context definition.
  2. Open a pricing procedure version in the Pricing Procedure Builder.
  3. To specify the discount value and type, create resources.
    1. In the Resource Manager, click Add Resource.
    2. For Resource Type, select Constant.
    3. For Resource Name, enter AdjustmentType.
    4. For Data Type, select Text.
    5. For Default Value, select AdjustmentPercentage, AdjustmentPAmount, or AdjustmentOverride.
    6. Click Done..
    7. Create another resource.
    8. For Resource Type, select Constant.
    9. For Resource Name, enter AdjustmentValue.
    10. For Data Type, select Number.
    11. For Decimal, enter 2.
    12. For Default Value, enter the value of the discount that should be applied.
    13. Click Done..
  4. Add the Pricing Setting element to the builder canvas, and specify its input and output variables.
    1. For LineItemId, enter LineItem.
    2. For NetUnitPrice, enter NetUnitPrice.
    3. For Subtotal, enter ItemNetTotalPrice.
    4. For PriceWaterfall, enter price_water_fall.
  5. Add the List Price element after the Pricing Setting element in the builder canvas, and specify its input and output variables.
    1. For Lookup Table Details, enter Price Book Entries V2.
    2. For Product2Id, enter Product.
    3. For ProductSellingModelId, enter ProductSellingModel.
    4. For Pricebook2Id, enter PriceBooks.
    5. For Quantity, enter LineItemQuantity.
    6. For Subtotal, enter Subtotal.
    7. For ListPrice, enter ListPrice.
  6. Add the Manual Discount element to the builder canvas, and specify its input and output variables.
    1. For AdjustmentValue, enter AdjustmentValue.
    2. For Quantity, enter LineItemQuantity.
    3. For InputUnitPrice, enter ListPrice.
    4. For AdjustmentType, enter AdjustmentType.
    5. For NetUnitPrice, enter ListPrice.
    6. For Subtotal, enter Subtotal.
  7. Save your changes.
  8. Simulate your pricing procedure, and make changes as necessary.
  9. When you’re satisfied, activate the pricing procedure version.
 
Loading
Salesforce Help | Article