You are here:
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 |
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.
- Create a pricing procedure with the Pricing usage type and the SalesTransactionContext context definition.
- Open a pricing procedure version in the Pricing Procedure Builder.
-
Add the Pricing Setting element to the builder canvas, and specify its input and
output variables.
- For Line Item, enter LineItem.
- For Price Waterfall, enter price_water_fall.
- For Net Unit Price, enter NetUnitPrice.
- For Subtotal, enter ItemNetTotalPrice.
-
Add the List Price element after the Pricing Setting element in the builder canvas, and
specify its input and output variables.
- For Lookup Table Details, enter Price Book Entries V2.
- For Product, enter Product.
- For Product Selling Model, enter ProductSellingModel.
- For Price Book, enter PriceBooks.
- For Quantity, enter LineItemQuantity.
- For List Price, enter ListPrice.
- For Subtotal, enter Subtotal.
-
Add the Volume Discount element after the List Price element to the builder canvas, and
specify its input and output variables.
- For Lookup Table Details, enter Volume Discount Entries.
- For Price Adjustment Schedule, enter PriceAdjustmentSchedule.
- For Lower Bound, enter LineItemQuantity.
- For Product, enter Product.
- For Upper Bound, enter LineItemQuantity.
- For Product Selling Model, enter ProductSellingModel.
- For Effective From, enter EffectiveFrom.
- For Effective To, enter EffectiveTo.
- For Quantity, enter LineItemQuantity.
- For Input Unit Price, enter ListPrice.
- For Net Unit Price, enter ListPrice.
- For Subtotal, enter Subtotal.
- Save your changes.
- Simulate your pricing procedure, and make changes as necessary.
- 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.
- Create a pricing procedure with the Pricing usage type and the SalesTransactionContext context definition.
- Open a pricing procedure version in the Pricing Procedure Builder.
-
Add the Pricing Setting element to the builder canvas, and specify its input and output
variables.
- For LineItemId, enter LineItem.
- For NetUnitPrice, enter NetUnitPrice.
- For Subtotal, enter ItemNetTotalPrice.
- For PriceWaterfall, enter price_water_fall.
-
Add the List Price element after the Pricing Setting element in the builder canvas, and
specify its input and output variables.
- For Lookup Table Details, enter Price Book Entries V2.
- For Product2Id, enter Product.
- For ProductSellingModelId, enter ProductSellingModel.
- For Pricebook2Id, enter PriceBooks.
- For Quantity, enter LineItemQuantity.
- For Subtotal, enter Subtotal.
- For ListPrice, enter ListPrice.
-
Add the Attribute-Based Price element to the builder canvas, and specify its input and
output variables.
- For Lookup Table Details, enter Attribute Discount Entries.
- For PriceAdjustmentScheduleId, enter PriceAdjustmentSchedule.
- For Product2Id, enter Product.
- For ProductSellingModelId, enter ProductSellingModel.
- For EffectiveFrom, enter EffectiveFrom.
- For EffectiveTo, enter EffectiveTo.
- For AttributeValue, enter AttributeValue.
- For Quantity, enter LineItemQuantity.
- For IsPriceImpacting, enter PriceImpactingAttribute.
- For AttributeName, enter AttributeKeyName.
- For InputUnitPrice, enter ListPrice.
- For NetUnitPrice, enter ListPrice.
- For Subtotal, enter Subtotal.
- Save your changes.
- Simulate your pricing procedure, and make changes as necessary.
- 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.
- Create a pricing procedure with the Pricing usage type and the SalesTransactionContext context definition.
- Open a pricing procedure version in the Pricing Procedure Builder.
-
To specify the discount value and type, create resources.
- In the Resource Manager, click Add Resource.
- For Resource Type, select Constant.
- For Resource Name, enter AdjustmentType.
- For Data Type, select Text.
- For Default Value, select AdjustmentPercentage, AdjustmentPAmount, or AdjustmentOverride.
- Click Done..
- Create another resource.
- For Resource Type, select Constant.
- For Resource Name, enter AdjustmentValue.
- For Data Type, select Number.
- For Decimal, enter 2.
- For Default Value, enter the value of the discount that should be applied.
- Click Done..
-
Add the Pricing Setting element to the builder canvas, and specify its input and output
variables.
- For LineItemId, enter LineItem.
- For NetUnitPrice, enter NetUnitPrice.
- For Subtotal, enter ItemNetTotalPrice.
- For PriceWaterfall, enter price_water_fall.
-
Add the List Price element after the Pricing Setting element in the builder canvas, and
specify its input and output variables.
- For Lookup Table Details, enter Price Book Entries V2.
- For Product2Id, enter Product.
- For ProductSellingModelId, enter ProductSellingModel.
- For Pricebook2Id, enter PriceBooks.
- For Quantity, enter LineItemQuantity.
- For Subtotal, enter Subtotal.
- For ListPrice, enter ListPrice.
-
Add the Manual Discount element to the builder canvas, and specify its input and output
variables.
- For AdjustmentValue, enter AdjustmentValue.
- For Quantity, enter LineItemQuantity.
- For InputUnitPrice, enter ListPrice.
- For AdjustmentType, enter AdjustmentType.
- For NetUnitPrice, enter ListPrice.
- For Subtotal, enter Subtotal.
- Save your changes.
- Simulate your pricing procedure, and make changes as necessary.
- When you’re satisfied, activate the pricing procedure version.
