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.

Territory2ModelHistory

Represents the history of changes to the values in the fields on a territory model. Available if Sales Territories has been enabled.

Supported Calls

describeSObjects(), getDeleted(), getUpdated(), query(), retrieve()

You can also enable delete() in API version 42.0 and later. See Enable delete of Field History and Field History Archive.

Fields

Field Name Details
DataType
Type
picklist
Properties
Filter, Group, Nillable, Restricted picklist, Sort
Description
Data type of the field that was changed.
Field
Type
picklist
Properties
Filter, Group, Restricted picklist, Sort
Description
The name of the field whose value was changed.
NewValue
Type
anyType
Properties
Nillable, Sort
Description
The new value of the changed field.
OldValue
Type
anyType
Properties
Nillable, Sort
Description
The previous value of the changed field.
Territory2ModelId
Type
reference
Properties
Filter, Group, Sort
Description
The ID of the territory model whose history is tracked.

Usage

This object is automatically generated whenever any field value changes on a territory model record. Use this object it to identify those changes.