Loading
Business Rules Engine
Example: Create a Decision Matrix to Get Step-Based Discount Percent

Example: Create a Decision Matrix to Get Step-Based Discount Percent

Create a decision matrix and configure its version with an input column for number of steps, and an output column with the corresponding discount percent based on a number range of steps.

Required Editions

User Permissions Needed
To create decision matrices and activate matrix versions: Rule Engine Designer

Create a decision matrix named StepBasedDiscount. This matrix uses step count as input, and returns the matching discount percent.

  1. Click App explorer icon., and then find and select Business Rules Engine.
  2. From the app navigation menu, select Lookup Tables.
  3. Click New.
  4. Select Decision Matrix | Next.
  5. For name, enter StepBasedDiscount, and for Type, select Standard.
  6. Save your changes.
  7. On the Related tab on the decision matrix record page, select StepBasedDiscount V1.
  8. On the Matrix tab, click Add Column, and then create two columns with these settings.
    Column Header Header Type Data Type
    Steps Input Number Range
    Discount Output Percent
  9. Click Done.
  10. To create a row, click Add Row.
  11. To add row data, click a table cell, click Pencil icon, which on clicking allows adding cell data. in the cell, and then enter the value.
    Add these rows and values.
    StepsDiscount Percent
    35000 0
    35,001 5
    50,001 10
    70,001 15
    100,000 25
    The Steps column in this matrix version represents number ranges. The values in the column define these ranges: Below 35000, 35,001–50,000, 50,001–70,000, 70,001–99,999, and 1000,000 or above.
  12. Save your changes.
  13. Activate the decision matrix version.
    Expression sets can call only active matrix versions.
 
Laster
Salesforce Help | Article