---
schema_version: "1"
id: ce67718a8306a1b5b1fd3b72f5be82010904c9235e082a49167ff83510213771
title: AccountTerritoryAssignmentRuleItem
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/object_reference/sforce_api_objects_accountterritoryassignmentruleitem.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_accountterritoryassignmentruleitem.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 2d7d00eb88783ddf0124d45a1b5bb3c8a5c71e7e64142a9b90a73ea34eb25d9a
description: A row of selection criteria for an AccountTerritoryAssignmentRule object. Available if Sales Territories has been enabled.
---
# AccountTerritoryAssignmentRuleItem

A row of selection criteria for an AccountTerritoryAssignmentRule object. Available if Sales Territories has been enabled.

AccountTerritoryAssignmentRuleItem can be created or deleted if the BooleanFilter field on its corresponding AccountTerritoryAssignmentRule object is a null value.

## Supported Calls

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

## Special Access Rules

Users with the View Setup and Configuration permission can access this object. Users with the Manage Territories permission can edit this object.

## Fields

| Field | Details |
| --- | --- |
| Field | 
Type

picklist

Properties

Create, Filter, Group, Sort, Update

Description

The standard or custom account field to use as a criteria.



 |
| Operation | 

Type

picklist

Properties

Create, Filter, Group, Sort, Update

Description

The criteria to apply, such as “equals” or “starts with.”



 |
| RuleID | 

Type

reference

Properties

Create, Filter, Update

Description

ID of the associated AccountTerritoryAssignmentRule.



 |
| SortOrder | 

Type

int

Properties

Create, Filter, Update

Description

The order in which this row is evaluated compared to other AccountTerritoryAssignmentRuleItem objects for the given AccountTerritoryAssignmentRule.



 |
| Value | 

Type

string

Properties

Create, Filter, Nillable, Update

Description

The field value(s) to evaluate, such as 94105 if the Field is Billing Zip/Postal Code.



 |

## Usage

- Both standard and custom account fields can be used as criteria for account assignment rules.
- A territory will not have any accounts (with the exception of manually assigned accounts) unless at least one account assignment rule is active for the territory.

#### See Also

- [AccountTerritoryAssignmentRule](https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_accountterritoryassignmentrule.htm "An account assignment rule that assigns accounts to territories based on account fields. Available if Sales Territories has been enabled.")
- [Territory](https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_territory.htm "Represents a flexible collection of accounts and users where the users have at least read access to the accounts, regardless of who owns the accounts. Available if Sales Territories has been enabled. This object is available in API versions 7.0 to 52.0. Use Territory2 instead of Territory in API version 52.0 and later.")
- [UserTerritory](https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_userterritory.htm "Represents a User who has been assigned to a Territory.")