---
schema_version: "1"
id: e6739f0a824f7d1081ce33a741cec3a18a62588b31a5f925bc61e1a8cc4288a1
title: Territory2ObjectExclusion
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/object_reference/sforce_api_objects_territory2objectexclusion.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_territory2objectexclusion.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: e9ff23e807e42780e497e6887409206388746a83bf651bdc5dec2a3d99ec1466
description: Represents the objects that aren’t included in territory assignment rule runs, even when they meet assignment rule criteria. This object is available in API version 54.0 and later.
---
# Territory2ObjectExclusion

Represents the objects that aren’t included in territory assignment rule runs, even when they meet assignment rule criteria. This object is available in API version 54.0 and later.

## Supported Calls

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

## Special Access Rules

Available if Sales Territories has been enabled.

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 org’s sharing settings. Users can’t view territory models in other states (such as Planning or Archived).

## Fields

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

string

Properties

Create, Filter, Group, Nillable, Sort, Update



 |
| ObjectId | 

Type

reference

Properties

Create, Filter, Group, Sort

Description

The ID of the Account object to exclude from the territory assignment rule.

This is a polymorphic relationship field.

Relationship Name

Object

Relationship Type

Lookup

Refers To

Account



 |
| Territory2Id | 

Type

reference

Properties

Create, Filter, Group, Sort

Description

The ID of the territory to exclude from the territory model assignment rule.

This is a relationship field.

Relationship Name

Territory2

Relationship Type

Lookup

Refers To

Territory2



 |