---
schema_version: "1"
id: ae2d181c5a7ad5220a5f7211ebde8228e45acc48f0fb1badbdf07e7a54167788
title: RuleTerritory2Association
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/object_reference/sforce_api_objects_ruleterritory2association.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_ruleterritory2association.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: f6bab034c2dce32cbfce173a81cb06a23878bf6f7b425a00a5b817c6ed01153e
description: Represents a record-assignment rule and its association to an object, such as Account. Available if Sales Territories has been enabled.
---
# RuleTerritory2Association

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

## Supported Calls

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

## Special Access Rules

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).

## Fields

| Field Name | Details |
| --- | --- |
| IsInherited | 
Type

picklist

Properties

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.



 |
| RuleId | 

Type

reference

Properties

Create, Filter, Group, Sort

Description

The ID of the rule.



 |
| Territory2Id | 

Type

reference

Properties

Create, Filter, Group, Sort

Description

The ID of the territory where the rule was created.



 |