Territory2
Represents a sales territory.
Introduced in API version 30.0.
create(), delete(), describeLayout(), describeSObjects(), query(), retrieve(), update(), upsert()
- Standard and partner users can access this object. If a territory model is in
Activestate, any standard or partner user can view that model, including its territories and assignment rules. For territories in an active model, any standard or partner user can view assigned records and assigned users subject to your Salesforce sharing settings. Users cannot view territory models in other states (such asPlanningorArchived).
- Type: picklist
- Properties: Create, Filter, Group, Restricted picklist, Sort, Update
- Description: Represents the default account record access levels for users that are assigned to the territory. Values are:
- Possible values:
- Read Only — Read Only
- Read/Write — Read/Write
- Owner — Owner
- Type: picklist
- Properties: Create, Filter, Group, Restricted picklist, Sort, Update
- Description: Represents the default case record access levels for users that are assigned to the territory. Values are:
- Possible values:
- Private — Private
- Read Only — Read Only
- Read/Write — Read/Write
- Type: picklist
- Properties: Create, Filter, Group, Restricted picklist, Sort, Update
- Description: Represents the default contact record access levels for users that are assigned to the territory. Values are:
- Possible values:
- Private — Private
- Read Only — Read Only
- Read/Write — Read/Write
- Type: string
- Properties: Create, Filter, Nillable, Sort, Update
- Description: The description of the territory. The field label in the user interface is
Territory Description.
-
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 Name.When creating large sets of data, always specify a unique
DeveloperNamefor each record. If noDeveloperNameis specified, performance slows down while Salesforce generates one for each record.
- Type: reference
- Properties: Filter, Group, Nillable, Sort, Update
- Introduced: API version 44.0
- Description: Unique identifier of a territory’s forecast manager. To select a
ForecastUserId, select someone in the list of users assigned to the territory. - Relationship name: ForecastUser
- Relationship type: relationship
- Refers to: User
- Type: string
- Properties: Create, Filter, Group, idLookup, Sort, Update
- Description: The name of the territory. The field label in the user interface is
Territory Label.
- Type: picklist
- Properties: Create, Filter, Group, Restricted picklist, Sort, Update
- Description: Represents the default opportunity record access levels for users that are assigned to the territory. Values are:
- Possible values:
- Private — Private
- Read Only — Read Only
- Read/Write — Read/Write
- Type: reference
- Properties: Create, Filter, Group, Nillable, Sort, Update
- Description: The ID of the territory’s parent territory (if any). If the territory has no parent territory, this value is
null. - Relationship name: ParentTerritory2
- Relationship type: relationship
- Refers to: Territory2
- Type: reference
- Properties: Create, Filter, Group, Sort
- Description: The ID of the territory model that the territory belongs to.
- Relationship name: Territory2Model
- Relationship type: relationship
- Refers to: Territory2Model
- Type: reference
- Properties: Create, Filter, Group, Sort, Update
- Description: The ID of the territory type that the territory belongs to.
- Relationship name: Territory2Type
- Relationship type: relationship
- Refers to: Territory2Type