Loading
Decision Table
Custom Object with Product Discount Rules (Example)

Custom Object with Product Discount Rules (Example)

You can use standard or custom objects to store decision table rules. In this example, an admin creates a custom object to store discount rules for orders. A decision table uses these rules to determine order discounts.

Required Editions

Available in: Lightning Experience
Available in: Enterprise, Performance, and Unlimited Editions with Loyalty Management or Rebate Management
Note
Note Decision tables are also available as part of Business Rules Engine. If your org has Business Rules Engine enabled, see Decision Tables for Business Rules Engine.

The admin names the custom object Order Discount Rules. The object contains these fields.

Field Data Type
Order Discount Name Text
Maximum Quantity Number
Minimum Quantity Number
Product Name Text
Discount Percent

Here's how the Order Discount Rule custom object looks in the Object Manager.

Custom object containing the rules.

The admin then adds the rules as records of the Order Discount Rules custom object.

Custom object with rules.

 
Laddar
Salesforce Help | Article