RuleTerritory2Association

Represents a record-assignment rule and its association to an object, such as Account. Available if Sales Territories has been enabled.

Introduced in API version 30.0.

describeSObjects(), getDeleted(), getUpdated(), query(), retrieve()

  • Standard users can access this object. If a territory model is in Active state, any standard user can view that model, including its territories and assignment rules. For territories in an active model, any standard 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: boolean
  • Properties: Create, Defaulted on create, Filter, Group, Restricted picklist, Sort, Update
  • Description: Indicates whether the rule is an inherited rule (true) or a local rule (false). Rule inheritance flows from the parent territory where the rule is created to the rule’s descendent territories (if any) in the territory model hierarchy. A local rule is created within a single territory and affects that territory only.
  • Default value: false
  • Type: reference
  • Properties: Create, Filter, Group, Sort
  • Description: The ID of the rule.
  • Relationship name: Rule
  • Relationship type: relationship
  • Refers to: ObjectTerritory2AssignmentRule
  • Type: reference
  • Properties: Create, Filter, Group, Sort
  • Description: The ID of the territory where the rule was created.
  • Relationship name: Territory2
  • Relationship type: relationship
  • Refers to: Territory2