---
schema_version: "1"
id: 19511a6c6edb0aeddca1fb81012ef9a8a2121f825fc6d8317936b015288b22a5
title: Territory2ModelHistory
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/object_reference/sforce_api_objects_territory2modelhistory.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_territory2modelhistory.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 91bbb1c94a55259145fba264b962be886ef68e7b4c0a4f24eb1502a800fd4882
description: Represents the history of changes to the values in the fields on a territory model. Available if Sales Territories has been enabled.
---
# 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](https://help.salesforce.com/articleView?id=000321814&type=1&mode=1&language=en_US "HTML (New Window)").

## 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.