Newer Version Available

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

ObjectTerritory2Association

Represents an association (by assignment) between a territory and an object record, such as an account. Available only if Enterprise Territory Management has been enabled for your Salesforce org.

Supported Calls

create()delete()describeSObjects()query()retrieve()

Special Access Rules

If a territory model is in Active state, any user can view that model, including its territories and assignment rules. For territories in an active model, any user can view assigned records and assigned users subject to your org’s sharing settings. Users cannot view territory models in other states (such as Planning or Archived).

Fields

Field Name Details
AssociationCause
Type
picklist
Properties
Create, Filter, Group, Restricted picklist, Sort
Description
The means by which the record was associated with the territory: by rules or manually. User interface field label is Method. Manual cause can be set only by a user or via the API. Rules cause is used by the rules engine when the object is assigned.
ObjectId
Type
reference
Properties
Create, Filter, Group, Sort
Description
The ID of the object. For API version 30.0 and later, Account only.
SobjectType
Type
picklist
Properties
Filter, Group, Nillable, Restricted picklist, Sort
Description
The type of the record. For API version 30.0 and later, Account only.
Territory2Id
Type
reference
Properties
Create, Filter, Group, Sort
Description
The ID of the territory that the record is assigned to.