---
schema_version: "1"
id: 81b11e571aa8df2a0463115b5ca4b0489ae3f3fa3fb4b6b1cfb192123caaa299
title: CalculationProcedure
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/object_reference/sforce_api_objects_calculationprocedure.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_calculationprocedure.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 6d13a88b49cbfe09f5268fc185cba795ea0df829f1d3bdd5ddf2dd40a4116097
description: Performs a series of calculations using matrix lookups and user-defined variables and constants. The label for this object is Expression Set. This object is available in API version 53.0 and later.
---
# CalculationProcedure

Performs a series of calculations using matrix lookups and user-defined variables and constants. The label for this object is Expression Set. This object is available in API version 53.0 and later.

![Note](https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/images/icon_note.png)

#### Note

This object has been deprecated as of API version 55.0. In API version 55.0 and later, use the new Expression Set objects in Business Rules Engine instead.

Expression Sets accept input variables and return output variables, both in JSON format. Expression Sets are especially useful for determining prices, rates, and quotes.

## Supported Calls

create(), delete(), describeLayout(), describeSObjects(), getDeleted(), getUpdated(), query(), retrieve(), search(), undelete(), update(), upsert()

## Special Access Rules

Access to Expression Sets requires OmniStudio licenses.

## Fields

| Field | Details |
| --- | --- |
| Description | 
Type

string

Properties

Create, Filter, Group, Nillable, Sort, Update

Description

A text description of the Expression Set.



 |
| InputVariablesMetadata | 

Type

textarea

Properties

Create, Nillable, Update

Description

Metadata for the Expression Set's input variables.



 |
| LastReferencedDate | 

Type

dateTime

Properties

Filter, Nillable, Sort

Description

The timestamp when the current user last accessed this record, a record related to this record, or a list view.



 |
| LastViewedDate | 

Type

dateTime

Properties

Filter, Nillable, Sort

Description

The timestamp when the current user last viewed this record or list view. If this value is null, it's possible the user only accessed this record or list view (LastReferencedDate) but didn't view it.



 |
| Name | 

Type

string

Properties

Create, Filter, Group, idLookup, Sort, Update

Description

The Expression Set name.



 |
| OutputVariablesMetadata | 

Type

textarea

Properties

Create, Nillable, Update

Description

Metadata for the Expression Set's output variables.



 |
| OwnerId | 

Type

reference

Properties

Create, Defaulted on create, Filter, Group, Sort, Update

Description

The ID of the user who currently owns this Expression Set. Default value is the user logged in to the API to perform the create action.

This is a polymorphic relationship field.

Relationship Name

Owner

Relationship Type

Lookup

Refers To

Group, User



 |

## Usage

OmniScripts and Integration Procedures can call Expression Sets. Expression Sets can call Decision Matrices.