Territory2
Represents a sales territory used to organize account and opportunity assignment in Enterprise Territory Management.
Columns
| Name | Type | ReadOnly | References | Description |
| Id [KEY] | String | True |
Unique identifier for the record. | |
| Name | String | False |
Name of the record. | |
| Territory2TypeId | String | False |
ID of the Territory2Type associated with this record. | |
| Territory2ModelId | String | False |
ID of the Territory2Model associated with this record. | |
| ParentTerritory2Id | String | False |
Territory2.Id |
ID of the ParentTerritory2 associated with this record. |
| Description | String | False |
Text description of the record. | |
| ForecastUserId | String | False |
User.Id |
ID of the ForecastUser associated with this record. |
| AccountAccessLevel | String | False |
Field containing AccountAccessLevel information. | |
| OpportunityAccessLevel | String | False |
Field containing OpportunityAccessLevel information. | |
| CaseAccessLevel | String | False |
Field containing CaseAccessLevel information. | |
| ContactAccessLevel | String | True |
Field containing ContactAccessLevel information. | |
| CurrencyIsoCode | String | False |
ISO code for the currency in which the revenue amount is expressed. | |
| LastModifiedById | String | True |
User.Id |
ID of the user who last modified the record. |
| DeveloperName | String | False |
The unique name used by the API and managed packages. | |
| SystemModstamp | Datetime | True |
Date and time when the record was last modified by a user or by an automated process. | |
| LastModifiedDate | Datetime | True |
Date and time when the record was last modified. |
Pseudocolumns
Pseudocolumn fields are used in the WHERE clause of SELECT statements and offer more granular control over the data returned from the data source.
| Name | Type | Description |
| SOQL | String |
Specifies the SOQL query to execute against the Salesforce servers. If this pseudo column is set from the WHERE clause it will take precedence over the original query. |
| ExternalIdColumn | String |
Specifies the external Id column to use if performing an insert. If this value is specified, upsert will be used when the INSERT command is called. |
| FilterScope | String |
Optional scope to limit the records returned from queries. This property can take one of these values: Delegated, Everything, Mine, MineAndMyGroups, My_Territory, My_Team_Territory, or Team. |