---
schema_version: "1"
id: 13e30112f8d1d08ca95c343b92d9e43f912cd9087fde6567364b3400ae330b48
title: CalculationProcedureVariable
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/object_reference/sforce_api_objects_calculationprocedurevariable.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_calculationprocedurevariable.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 917bf40080e5990699863ce38d1b2c7b9e0dbd6f840c54d89e7d3dad7189ec75
description: Defines a variable in an Expression Set. The label for this object is Expression Set Variable. This object is available in API version 53.0 and later.
---
# CalculationProcedureVariable

Defines a variable in an Expression Set. The label for this object is Expression Set Variable. 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.

## Supported Calls

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

## Special Access Rules

Access to Expression Sets requires OmniStudio licenses.

## Fields

| Field | Details |
| --- | --- |
| ApiName | 
Type

string

Properties

Create, Filter, Group, Nillable, Sort, Update

Description

The API name of this variable.



 |
| CalculationMatrixName | 

Type

string

Properties

Create, Filter, Group, Nillable, Sort, Update

Description

The name of the Decision Matrix to which this variable belongs. Applicable only if this variable references a Decision Matrix column.



 |
| CalculationProcedureVersionId | 

Type

reference

Properties

Create, Filter, Group, Sort

Description

The ID of the Expression Set Version to which this variable belongs.

This is a relationship field.

Relationship Name

CalculationProcedureVersion

Relationship Type

Lookup

Refers To

CalculationProcedureVersion



 |
| DataType | 

Type

picklist

Properties

Create, Filter, Group, Nillable, Restricted picklist, Sort, Update

Description

The data type of this variable.

Possible values are:

- Boolean
- Currency
- Date
- Number
- Percent
- Text





 |
| DefaultValue | 

Type

string

Properties

Create, Filter, Group, Nillable, Sort, Update

Description

The default value of this variable.



 |
| DisplayName | 

Type

string

Properties

Create, Filter, Group, Nillable, Sort, Update

Description

The user-readable name of this variable.



 |
| IsEditable | 

Type

boolean

Properties

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

Description

If true, specifies that a variable is NOT auto-imported from a step that calls a Decision Matrix or a child Expression Set.

The default value is false.



 |
| IsUserDefined | 

Type

boolean

Properties

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

Description

Specifies whether a variable is defined by the user.

The default value is false.



 |
| Name | 

Type

string

Properties

Create, Filter, Group, idLookup, Sort, Update

Description

The name of this variable.



 |
| Precision | 

Type

int

Properties

Create, Filter, Group, Nillable, Sort, Update

Description

The number of decimal places. Applicable if the DataType is Currency, Number, or Percent.



 |
| UiDisplayOrder | 

Type

int

Properties

Create, Filter, Group, Nillable, Sort, Update

Description

The display order of the variable in the UI.



 |