Territory2Model

Represents a territory model.

Introduced in API version 30.0.

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

  • Standard and partner users can access this object. If a territory model is in Active state, 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 as Planning or Archived).
  • Type: datetime
  • Properties: Filter, Nillable, Sort
  • Description: The date when the territory model was activated.
  • Type: datetime
  • Properties: Filter, Nillable, Sort
  • Description: The date when the territory model was archived.
  • Type: textarea
  • Properties: Create, Filter, Group, Nillable, Sort, Update
  • Description: The description of the territory model.
  • 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 slows down while Salesforce generates one for each record.

  • Type: boolean
  • Properties: Defaulted on create, Filter, Group, Sort
  • Introduced: API version 32.0
  • Type: boolean

  • Properties: Defaulted on create, Filter, Group, Sort

  • Introduced: API version 53.0

  • Default value: false

  • Type: boolean
  • Properties: Create, Defaulted on create, Filter, Group, Sort, Update
  • Introduced: API version 33.0
  • Type: boolean

  • Properties: Create, Defaulted on create, Filter, Group, Sort, Update

  • Default value: false

  • Type: boolean

  • Properties: Defaulted on create, Filter, Group, Sort

  • Introduced: API version 53.0

  • Default value: false

  • Type: datetime
  • Properties: Filter, Nillable, Sort
  • Introduced: API version 33.0
  • Description: Read-only. The date when the opportunity territory assignment filter was last run. Used for Filter-Based Opportunity Territory Assignment (Pilot in Spring ’15 / API version 33).
  • Type: datetime
  • Properties: Filter, Nillable, Sort
  • Description: The date when the last rules run was completed.
  • Type: string
  • Properties: Create, Filter, Group, idLookup, Sort, Update
  • Description: The territory model name. The field label in the user interface is Label.
  • Type: picklist
  • Properties: Defaulted on create, 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.

This object has the following associated objects. If the API version isn’t specified, they’re available in the same API versions as this object. Otherwise, they’re available in the specified API version.