Note: This release is in preview. Features described here don’t become generally available until the latest general availability date that Salesforce announces for this release. Before then, and where features are noted as beta, pilot, or developer preview, we can’t guarantee general availability within any particular time frame or at all. Make your purchase decisions only on the basis of generally available products and features.
Decision Matrix Actions
For example, you can look up a candidate’s eligibility to avail medical insurance in a decision matrix based on the candidate’s age and gender.
These actions are available in API version 55.0 and later.
Supported REST HTTP Methods
Inputs
Vary depending on the selected decision matrix.
Outputs
Vary depending on the inputs of the selected decision matrix.
Usage
- Sample Request
-
Here’s an example POST request that has the inputs, such as, age and state:
1{ 2 "inputs":[ 3 { 4 "age":"25", 5 "state":"NY" 6 }, 7 { 8 "age":"25", 9 "state":"CA" 10 }, 11 { 12 "age":"", 13 "state":"WA" 14 } 15 ] 16} - Sample Response
-
Here’s an example response that has the premium and tax values based on the inputs provided in the example request.
1[ 2 { 3 "actionName":"premiumTaxLookup", 4 "errors":null, 5 "isSuccess":true, 6 "outputValues":{ 7 "premium":2400.0, 8 "tax":200.0 9 } 10 }, 11 { 12 "actionName":"premiumTaxLookup", 13 "errors":null, 14 "isSuccess":true, 15 "outputValues":{ 16 "premium":2400.0, 17 "tax":200.0 18 } 19 }, 20 { 21 "actionName":"premiumTaxLookup", 22 "errors":[ 23 { 24 "statusCode":"REQUIRED_FIELD_MISSING", 25 "message":"Missing required input parameter: age", 26 "fields":[ 27 ] 28 } 29 ], 30 "isSuccess":false, 31 "outputValues":null 32 } 33]