---
schema_version: "1"
id: 43cd5bb87783f4248e515d3aa76522cc96159c6594c1d24f67b45bb884bc31d4
title: AccountPlanObjMeasCalcDef
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/object_reference/sforce_api_objects_accountplanobjmeascalcdef.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_accountplanobjmeascalcdef.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 5b70e143a019fc7737b38c3f0bd8102ed7fb8dfeb56ae668aaeca00e373f407d
description: Represents the definition of a target object, rollup field, and logic for calculating the current value of a sales account plan objective measure. This object is available in API version 63.0 and later.
---
# AccountPlanObjMeasCalcDef

Represents the definition of a target object, rollup field, and logic for calculating the current value of a sales account plan objective measure. This object is available in API version 63.0 and later.

## Supported Calls

create(), delete(), describeSObjects(), query(), retrieve(), update(), upsert()

## Special Access Rules

This object is available if sales account plans are turned on.

## Fields

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

textarea

Properties

Create, Filter, Group, Nillable, Sort, Update

Description

A summary of the calculation definition that’s visible to users when they select the definition for an account plan objective measure.



 |
| DeveloperName | 

Type

string

Properties

Create, Filter, Group, Sort, Update

Description

The unique name of the object in the API. The name:

- must be 40 characters or fewer
- must begin with a letter
- can contain only underscores and alphanumeric characters
- can’t include spaces
- can’t end with an underscore
- can’t contain 2 consecutive underscores





 |
| Language | 

Type

picklist

Properties

Create, Defaulted on create, Filter, Group, Nillable, Restricted picklist, Sort, Update

Description

The combined language and locale ISO code, which controls the language of the calculation definition.



 |
| MasterLabel | 

Type

string

Properties

Create, Filter, Group, Sort, Update

Description

Label for this calculation definition. This display value is the internal label that doesn't get translated.



 |
| NamespacePrefix | 

Type

string

Properties

Filter, Group, Nillable, Sort

Description

The namespace prefix that is associated with this object. Each Developer Edition org that creates a managed package has a unique namespace prefix. Limit: 15 characters. You can refer to a component in a managed package by using the namespacePrefix\_\_componentName notation.

The namespace prefix can have one of these values.

- In Developer Edition orgs, NamespacePrefix is set to the namespace prefix of the org for all objects that support it, unless an object is in an installed managed package. In that case, the object has the namespace prefix of the installed managed package. This field’s value is the namespace prefix of the Developer Edition org of the package developer.
- In orgs that aren’t Developer Edition orgs, NamespacePrefix is set only for objects that are part of an installed managed package. All other objects have no namespace prefix.





 |
| RollupType | 

Type

picklist

Properties

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

Description

The method for calculating the account plan objective measure’s current value from records that match the calculation definition and any optional conditions.

Possible values are:

- Count
- Max
- Min
- Sum

In Setup, this field’s label is Calculation Type.



 |
| Status | 

Type

picklist

Properties

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

Description

Possible values are:

- Active
- Draft
- Inactive

Only active calculation definitions are available for users to select when they specify an account plan objective measure.



 |
| TargetField | 

Type

picklist

Properties

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

Description

The field on TargetObject to use for calculating the account plan objective measure’s current value. Rollup fields on the Campaign, Case, Contact, or Opportunity object are supported.

In Setup, this field’s label is Rollup Field.



 |
| TargetObject | 

Type

picklist

Properties

Create, Filter, Group, Restricted picklist, Sort

Description

The object to use for calculating the account plan objective measure’s current value.

Possible values are:

- Campaign
- Case
- Contact
- Opportunity





 |
| ValueType | 

Type

picklist

Properties

Filter, Group, Nillable, Restricted picklist, Sort

Description

The data type for calculating the account plan objective measure’s current value.

Possible values are:

- Currency
- Number
- Percent





 |

## Usage

Let’s say that a calculation definition tracks the currency amount on opportunities. The calculation definition’s TargetObject is Opportunity, TargetField is Amount, and RollupType is Sum.