Example of Quantity-Based Price Override Rule (APM, Well Depth)
In this example, we will add price overrides based on a quantity. More specifically, the price override will be based on well depth.
Once we set up the overrides:
-
The prices of quote items will change based on the well depth selected for quote items.
-
The prices of ticket items will change based on the well depth selected for ticket items.
This example demonstrates how to configure price overrides based on a quantity-driven attribute. In this case, pricing is determined by well depth.
Expected Behavior
After configuration:
-
The price of quote items updates based on the selected well depth.
-
The price of ticket items updates based on the selected well depth.
Before you begin
-
Access to FieldFX Back Office
-
Salesforce Classic enabled
-
Required permissions to create fields and edit page layouts
Setup Overview (APM)
Step 1: Create Required Custom Fields
If these fields do not already exist, create them.
Best Practice
Don’t use same or similar names for FieldFX standard objects, fields, and API Names. Using the same or similar names could cause performance issues in Salesforce platform and FieldFX.
| Object | Custom Fields |
|---|---|
Ticket__c |
WellDepth__c |
Ticket_Item__c |
|
Overrider__c |
MinDepth__c, MaxDepth__c |
Step 2: Update Page Layouts
Ensure the following fields are available on the relevant layouts.
Page Layout |
Fields |
Override Configs |
IsAggregation, Sort Clause, Limit |
Overrides |
MinDepth, MaxDepth, Price |
Price Book Item |
Override Price Method |
Step 3: Create Override Configuration
-
Open the Override Configs tab.
-
Click New.
-
Enter the following values:
Field Value Name
Price Override by Well Depth
Applies to SObject
Add Ticket and Quote to Chosen
Override Fields
FX5__Price__cOverride Type
Price
Filter Clause
FX5__CustomerAccount__c==$FX5__CustomerAccount__c && FX5__Catalog_Item__c==$FX5__Catalog_Item__cSort Clause
WellDepth__cLimit
1
-
Click Save.
|
The sort clause ensures that the closest matching depth range is selected when multiple overrides qualify. |
Step 4: Create Override Records
-
Open the Overrides tab.
-
Click New.
-
Set Applies to SObject to include Ticket and Quote.
-
Create the following override records:
MinDepth MaxDepth Price 50
500
100
500
599
200
600
699
300