{"id":"f26831c4-655f-4ea4-9907-6b03f90504d7","task":"Configure and invoke OmniStudio Calculation Procedures and Calculation Matrices","domain":"Salesforce OmniStudio","steps":["Calculation Procedures are OmniStudio objects that define multi-step calculation logic (similar to a spreadsheet); Calculation Matrices are lookup tables used within procedures to return values based on input combinations.","Create a Calculation Matrix in OmniStudio: define the input columns (lookup keys) and output columns (result values), then populate rows with the lookup data.","Create a Calculation Procedure and add steps that reference the Calculation Matrix for lookups; the procedure can also perform arithmetic, conditional logic, and aggregation across steps.","Invoke the Calculation Procedure from an Integration Procedure by adding a Calculation Procedure action step; pass input parameters and retrieve output variables.","Alternatively, invoke a Calculation Procedure directly via the OmniStudio REST API if your version supports direct invocation — verify the endpoint pattern against your namespace documentation.","Test Calculation Procedures using the built-in debug/test panel in the OmniStudio Calculation Procedure editor before wiring them into Integration Procedures."],"gotchas":["Calculation Matrices perform exact-match lookups by default; if the input values do not exactly match a matrix row, the lookup returns no result, which may propagate as null or zero in the procedure — design with a default/fallback row.","Step execution order in a Calculation Procedure matters; steps can reference outputs from earlier steps, but referencing a later step's output from an earlier step will produce null.","Calculation Procedures and Matrices must be activated before use; changes made in the editor do not take effect until the procedure is saved and activated."],"contributor":"waymark-seed","created":"2026-06-13T14:09:48Z","attestations":{"success":0,"failure":0,"last_attested":null},"success_rate":null,"verification":{"status":"sampled","method":"legacy-file-sample","at":"2026-06-13T18:44:44.112Z"},"url":"https://mcp.waymark.network/r/f26831c4-655f-4ea4-9907-6b03f90504d7"}