Newer Version Available

This content describes an older version of this product. View Latest

Territory2Model

Represents a territory model. Available only if Territory Management 2.0 has been enabled for your organization.

Supported Calls

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

Special Access Rules

If a territory model is in Active state, any user can view that model, including its territories and assignment rules. For territories in an active model, any user can view assigned records and assigned users subject to your organization’s sharing settings. Users cannot view territory models in other states (such as Planning or Archived).

Fields

Field Name Details
ActivatedDate
Type
dateTime
Properties
Filter, Nillable, Sort
Description
The date when the territory model was activated.
DeactivatedDate
Type
dateTime
Properties
Filter, Nillable, Sort
Description
The date when the territory model was archived.
Description
Type
textarea
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The description of the territory model.
DeveloperName
Type
string
Properties
Create, Filter, Group, Sort, Update
Description
Required. The unique name of the object in the API. This name can contain only underscores and alphanumeric characters and must be unique in your organization. It must begin with a letter, not include spaces, not end with an underscore, and not contain two consecutive underscores. The field label in the user interface is Territory Model Name.

When creating large sets of data, always specify a unique DeveloperName for each record. If no DeveloperName is specified, performance may slow while Salesforce generates one for each record.

Note

LastRunRulesEndDate
Type
dateTime
Properties
Filter, Nillable, Sort
Description
The date when the last rules run was completed.
Name
Type
string
Properties
Create, Filter, Group, Sort, Update
Description
The territory model name. The field label in the user interface is Label.
State
Type
picklist
Properties
Filter, Group, Nillable, Restricted picklist, Sort, Update
Description
The state of the territory model. Values are: Planning, Activating, Activation Failed, Active, Archiving, Archiving Failed, Archived, Deleting, and Deletion Failed.