You are here:
Business Rules
Decision tables provide outcomes based on business rules. Rules are defined as records in a standard object, custom object, or a custom metadata type. A decision table can read up to 100,000 rules.
Required Editions
| Available in: Lightning Experience |
| Available in: Enterprise, Performance, and Unlimited Editions with Loyalty Management or Rebate Management |
The object or the custom metadata type contains fields that are used as inputs and outputs in the decision table. Input fields use values from the business rules to evaluate field values or user-specified values, and provide outcomes.
When values match a particular rule, the decision table provides the value of the output field of the matched rule as the outcome. If a value matches multiple rules, the decision table provides a list of outcomes.
Group your business rules with a frequently used input field and run up to 1,000,000 calls in an hour.
- Account
- Contact
- Lead
- Opportunity
- Case
The first record contains these values:
- Category: Shoe
- Lowest Price Point: US$0
- Highest Price Point: US$500
- Discount: 5%
The second record contains these values:
- Category: Shoe
- Lowest Price Point: US$501
- Highest Price Point: US$1,500
- Discount: 10%
The third record contains these values:
- Category: —
- Lowest Price Point: US$0
- Highest Price Point: US$2,000
- Discount: 8%
Category, Lowest Price Point, and Highest Price Point are inputs in the decision table and Discount is the output. A shoe worth US$400 is evaluated by the decision table. It checks the rules and provides 5% as the outcome because the shoe matches the first rule. When the decision table evaluates another shoe priced at US$750, it provides two outcomes: 10% and 8% because the product matches the second and third rules. It matches the third rule because an input field (Category) in the rule doesn't have a value, and the shoe isn't evaluated against that input field. So, based on the price alone, the shoe also matches the third rule.
- Business Rule Grouping
Group your business rules with a frequently used input field to reduce the number of rows to process. Grouping splits your business rules into multiple groups and evaluates only the required group.

