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 Version Rows
Retrieve a paginated list of or manage rows in a decision matrix
version. Use this resource to add new rows, or update or delete existing rows in a decision
matrix version.
- Resource
-
1/connect/omnistudio/decision-matrices/${matrixId}/versions/${versionId}/rows - Example
-
1/services/data/v53.0/connect/omnistudio/decision-matrices/0lIR000000000u0MAA 2/versions/0lNR000000000rFMAQ/rows - Available version
- 53.0
- Requires Chatter
- No
- HTTP methods
- GET, POST
- Path parameters for GET
-
Parameter Name Type Description Required or Optional Available Version matrixId String The ID of the decision matrix record. Required 53.0 versionId String The ID of the decision matrix version record. Required 53.0 - Query parameters for GET
-
Parameter Name Type Description Required or Optional Available Version file Boolean Indicates whether to get the rows by generating a CSV file for downloading (true) or fetching the rows in JSON format (false). The default value is false. Optional 53.0 - Response body for GET
- Decision Matrix Rows Output
- Request body for POST
-
- JSON Example
-
Add a row:
1{ 2 "rows": [ 3 { 4 "rowData": { 5 "Age": "45", 6 "Gender": "F", 7 "Premium": "2000" 8 } 9 } 10 ] 11} -
Delete a row:
1{ 2 "rows": [ 3 { 4 "id": "a1j5w000006D04uAAC", 5 "action": "delete", 6 "rowData": { 7 "Age": "45", 8 "Gender": "F", 9 "Premium": "2000" 10 } 11 } 12 ] 13} -
Update a row:
1{ 2 "rows": [ 3 { 4 "id": "a1j5w000006D04uAAC", 5 "action": "update", 6 "rowData": { 7 "Age": "45", 8 "Gender": "F", 9 "Premium": "1500" 10 } 11 } 12 ] 13} -
Add row using a CSV file:
-
1{ 2 "fileId" : "f1j5w000005D04uFGC" 3} - Properties
-
Name Type Description Required or Optional Available Version fileId String The ID of the Content Document Version that contains the rows details to be added or updated in a decision matrix version. Optional 53.0 rows Decision Matrix Row Input[] List of rows to be added, updated, or deleted in a decision matrix version. Required 53.0
- Response body for POST
- Decision Matrix Output