Newer Version Available

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

Territory2Type

Represents the metadata for a category of territories in Territory Management 2.0. Every Territory2 must have a Territory2Type. It extends the Metadata metadata type and inherits its fullName field.Available only if Territory Management 2.0 has been enabled for your organization.

File Suffix and Directory Location

Territory2Type components have the suffix territory2Type and are stored in the territory2Types folder.

Version

Territory2Type components are available in API version 32.0 and later.

Special Access Rules

Users without the “Manage Territories” permission will be able to retrieve all the Territory2Types in the organization. “Manage Territories” permission is required for the deploy() operation, in addition to the “Modify All Data” permission required by the Metadata API.

Fields

Field Name Field Type Description
description string A description of the territory type.
name string Required. The user interface label for the territory type.

Declarative Metadata Sample Definition

The following example shows the definition of a Territory2Type component.

1<?xml version="1.0" encoding="UTF-8"?>
2<Territory2Type xmlns="http://soap.sforce.com/2006/04/metadata">
3    <name>Geo</name>
4    <description>Geographic allocation</description>
5</Territory2Type>

Usage

Territory Management 2.0 components don’t support packaging or change sets and aren’t supported in CRUD calls.