Create OmniStudio Calculation Matrix
sf_create_calculation_matrixCreate a calculation matrix that maps input combinations to output values for rule-based lookups, pricing, eligibility, scoring, and decision tables.
Instructions
Creates a Calculation Matrix for rule-based lookups and calculations. Matrices map input combinations to output values — useful for pricing, eligibility, scoring, and decision tables.
inputVariables: list of input variable names (columns used for lookups) outputVariables: list of output variable names (columns returned) rows: array of { inputs: {var: value}, outputs: {var: value} } defining the lookup table
Example: a pricing matrix with inputs [ProductType, Region] and outputs [Price, Discount].
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rows | No | Matrix rows: array of {inputVarName: value, ..., outputVarName: value} | |
| label | Yes | ||
| matrixName | Yes | API name of the Calculation Matrix | |
| description | No | ||
| inputVariables | Yes | Input column definitions | |
| outputVariables | Yes | Output column definitions |