---
schema_version: "1"
id: a265864a9f7265c283aa1d5a15c2a115d18425a45ddec68a67e43ce3f8861c0b
title: RelationshipDomain
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/api_tooling/tooling_api_objects_relationshipdomain.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.api_tooling.meta/api_tooling/tooling_api_objects_relationshipdomain.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: da274e5ed7283aa755b24aa93bf4ec37747efef69b495fb39e9726ff1d467c68
description: Represents the relationship an object has with other objects. RelationshipDomain allows you to write simpler queries. For example, “which objects are the child objects for the object defined in ParentSobject” is easier using RelationshipDomain. Available in Tooling API version 34.0 and later.
---
# RelationshipDomain

Represents the relationship an object has with other objects. RelationshipDomain allows you to write simpler queries. For example, “which objects are the child objects for the object defined in ParentSobject” is easier using RelationshipDomain. Available in Tooling API version 34.0 and later.

## Supported SOAP Calls

query()

## Supported REST HTTP Methods

GET

## Limitations

[SOQL Limitations](https://developer.salesforce.com/docs/atlas.en-us.api_tooling.meta/api_tooling/reference_objects_soql_limits.htm "Some Tooling API objects have SOQL limitations. These limitations apply to any Metadata Catalog query, which applies to all Custom Metadata Types and Metadata Catalog entities, not only the ones explicitly listed.")

[SOSL Limitations](https://developer.salesforce.com/docs/atlas.en-us.api_tooling.meta/api_tooling/reference_objects_sosl_limits.htm "Two Tooling API objects, EntityDefinition and FieldDefinition, have some SOSL limitations. ExternalString and MetadataComponentDependency (Beta) don’t support SOSL searches.")

## Fields

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

[EntityDefinition](https://developer.salesforce.com/docs/atlas.en-us.api_tooling.meta/api_tooling/tooling_api_objects_entitydefinition.htm "Provides row-based access to metadata about standard and custom objects.")

Properties

Filter, Group, Sort

Description

Metadata for the child object, if any.



 |
| ChildSobjectId | 

Type

string

Properties

Filter, Group, Nillable, Sort

Description

ID of the ChildSobject.



 |
| DurableId | 

Type

string

Properties

Filter, Group, Nillable, Sort

Description

Unique identifier for the field. Always retrieve this value before using it, as the value isn’t guaranteed to stay the same from one release to the next. To simplify queries, use this field.



 |
| Field | 

Type

[FieldDefinition](https://developer.salesforce.com/docs/atlas.en-us.api_tooling.meta/api_tooling/tooling_api_objects_fielddefinition.htm "Represents a standard or custom field, providing row-based access to field metadata. Contrast FieldDefinition with EntityParticle, which represents each element of a field that can be presented in a user interface. FieldDefinition has parity with metadata type Field.")

Properties

Filter, Group, Sort

Description

The relationship field on this object that defines the relationship to ChildSobject or ParentSobject.



 |
| FieldId | 

Type

string

Properties

Filter, Group, Nillable, Sort

Description

ID of Field.



 |
| IsCascadeDelete | 

Type

boolean

Properties

Defaulted on create, Filter, Group, Sort

Description

If true, this object’s parent can’t be deleted until all records for this object are deleted. Corresponds to Cascade value for DeleteConstraint in the Metadata API.



 |
| IsDeprecatedAndHidden | 

Type

boolean

Properties

Defaulted on create, Filter, Group, Sort

Description

If true, this object is unavailable for the current version.



 |
| IsRestrictedDelete | 

Type

boolean

Properties

Defaulted on create, Filter, Group, Sort

Description

If true, this object can’t be deleted. Corresponds to Restrict value for DeleteConstraint in the Metadata API.



 |
| JunctionIdListNames | 

Type

complexvalue

Properties

Nillable

Description

The names of the lists of junction IDs associated with an object. Each ID represents an object that has a relationship with the associated object.



 |
| ParentSobject | 

Type

[EntityDefinition](https://developer.salesforce.com/docs/atlas.en-us.api_tooling.meta/api_tooling/tooling_api_objects_entitydefinition.htm "Provides row-based access to metadata about standard and custom objects.")

Properties

Filter, Group, Sort

Description

Metadata for the parent object, if any.



 |
| ParentSobjectId | 

Type

string

Properties

Filter, Group, Nillable, Sort

Description

ID of the ParentSobject.



 |
| RelationshipInfo | 

Type

[RelationshipInfo](https://developer.salesforce.com/docs/atlas.en-us.api_tooling.meta/api_tooling/tooling_api_objects_relationshipinfo.htm "Represents the properties of a relationship between objects. Simplify queries with RelationshipInfo, such as answering the question “which objects are parent objects for the object defined in ChildSobject. Available in Tooling API version 34.0 and later.")

Properties

Filter, Group, Sort

Description

Properties about the relationship.



 |
| RelationshipInfoId | 

Type

string

Properties

Filter, Group, Nillable, Sort

Description

ID of RelationshipInfo for this relationship domain.



 |
| RelationshipName | 

Type

string

Properties

Filter, Group, Nillable, Sort

Description

Name of this relationship.



 |