No Results
Search Tips:
- Please consider misspellings
- Try different search keywords
Newer Version Available
Territory
Represents a territory in your organization.
Declarative Metadata File Suffix and Directory Location
The file suffix for territory components is .territory and components are stored in the territories directory of the corresponding package directory.
Version
Territory components are available in API version 24.0 and later.
Fields
This metadata type extends to subtype RoleOrTerritory.
| Field Name | Field Type | Description |
|---|---|---|
| fullName | string | The unique identifier for API access. The fullName can contain only underscores and alphanumeric characters. It must be unique, begin with a letter, not include spaces, not end with an underscore, and not contain two consecutive underscores. This field is inherited from the Metadata component. Corresponds to Territory Name in the user interface. |
| parentTerritory | string | The territory above this territory in the territory hierarchy. |
Declarative Metadata Sample Definition
The following
is the definition of a territory.
1<?xml version="1.0" encoding="UTF-8"?>
2<Territory xmlns="http://soap.sforce.com/2006/04/metadata">
3 <caseAccessLevel>Edit</caseAccessLevel>
4 <contactAccessLevel>Edit</contactAccessLevel>
5 <description>Sample Territory</description>
6 <mayForecastManagerShare>false</mayForecastManagerShare>
7 <name>T22name</name>
8 <opportunityAccessLevel>Read</opportunityAccessLevel>
9</Territory>