---
schema_version: "1"
id: ec612d9d93281bccabed4dd4432b9b951ce39c470f682054f748173ccf033a4e
title: RelationshipInfo
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/api_tooling/tooling_api_objects_relationshipinfo.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.api_tooling.meta/api_tooling/tooling_api_objects_relationshipinfo.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 41276648d7a7fd5302f43e29c3e299e2e098eaa6a6b949fb90d32be522fa720d
description: 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.
---
# RelationshipInfo

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.

## Supported SOAP Calls

query(), search()

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



 |
| RelationshipDomains | 

Type

[QueryResult](https://developer.salesforce.com/docs/atlas.en-us.api_tooling.meta/api_tooling/tooling_api_objects_queryresult.htm "Represents the results of a query. For example, if you query on the object EntityDefinition, all the layouts for that entity are returned as an array of QueryResult objects in the Layouts field. Available in Tooling API version 34.0 and later.")

Properties

Filter, Group, Sort

Description

The RelationshipDomain records associated with this object. Because this field represents a relationship, use only in subqueries.



 |