---
schema_version: "1"
id: dae25a8088a2913d775b6f20e535150423f3ed4e6c0a363550ba38072c95aaa7
title: ContactContactRelation
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/automotive_cloud/sforce_api_objects_contactcontactrelation.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.automotive_cloud.meta/automotive_cloud/sforce_api_objects_contactcontactrelation.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 0afe429eb0fedb74366958c761a2e7b53b1c33ef717eaa35a2a0e90c1c0f522d
description: Represents a relationship between contacts, such as two members in a household. This object is available in API version 57.0 and later.
---
# ContactContactRelation

Represents a relationship between contacts, such as two members in a household. This object is available in API version 57.0 and later.

## Supported Calls

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

## Special Access Rules

Automotive and Group Membership must be enabled.

## Fields

### ContactId

- **Type**: reference
- **Properties**: Create, Filter, Group, Sort, Update
- **Description**: ID of the account associated with this contact contact relationship. This field is a relationship field.
- **Relationship Name**: Contact
- **Relationship Type**: Lookup
- **Refers To**: Contact

### EndDate

- **Type**: date
- **Properties**: Create, Filter, Group, Nillable, Sort, Update
- **Description**: The date when the relationship ends.

### HierarchyType

- **Type**: picklist
- **Properties**: Create, Defaulted on create, Filter, Group, Nillable, Restricted picklist, Sort, Update
- **Description**: Indicates the type of association to determine the hierarchy of relationship between the two parties. Possible values are: The default value is Parent. Child, Parent, or Peer.

### IsActive

- **Type**: boolean
- **Properties**: Create, Defaulted on create, Filter, Group, Sort, Update
- **Description**: Indicates whether the contact is actively involved with the related contact. The default value is false.

### LastReferencedDate

- **Type**: dateTime
- **Properties**: Filter, Nillable, Sort
- **Description**: The timestamp when the current user last accessed this record, a record related to this record, or a list view.

### LastViewedDate

- **Type**: dateTime
- **Properties**: Filter, Nillable, Sort
- **Description**: The timestamp when the current user last viewed this record or list view.

### Name

- **Type**: string
- **Properties**: Autonumber, Defaulted on create, Filter, idLookup, Sort
- **Description**: Name of the contact contact relationship.

### OwnerId

- **Type**: reference
- **Properties**: Create, Defaulted on create, Filter, Group, Sort, Update
- **Description**: ID of the owner of this object. This field is a polymorphic relationship field.
- **Relationship Name**: Owner
- **Relationship Type**: Lookup
- **Refers To**: Group, User

### PartyRoleRelationId

- **Type**: reference
- **Properties**: Create, Filter, Group, Sort, Update
- **Description**: The relationship between two contacts. This field is a relationship field.
- **Relationship Name**: PartyRoleRelation
- **Relationship Type**: Lookup
- **Refers To**: PartyRoleRelation

### RelatedContactId

- **Type**: reference
- **Properties**: Create, Filter, Group, Sort, Update
- **Description**: The related contact in the relationship. This field is a relationship field.
- **Relationship Name**: RelatedContact
- **Relationship Type**: Lookup
- **Refers To**: Contact

### RelatedInverseRecordId

- **Type**: reference
- **Properties**: Create, Filter, Group, Nillable, Sort, Update
- **Description**: The record that specifies the inverse relationship between the contacts. This field is a relationship field.
- **Relationship Name**: RelatedInverseRecord
- **Relationship Type**: Lookup
- **Refers To**: ContactContactRelation

### StartDate

- **Type**: date
- **Properties**: Create, Filter, Group, Nillable, Sort, Update
- **Description**: The date when the relationship starts.

## Associated Objects

This object has the following associated objects. If the API version isn’t specified, they’re available in the same API versions as this object. Otherwise, they’re available in the specified API version and later.

- [ContactContactRelationChangeEvent](https://developer.salesforce.com/docs/atlas.en-us.264.0.industries_reference.meta/industries_reference/sforce_api_associated_objects_change_event.htm): Change events are available for the object.
- [ContactContactRelationFeed](https://developer.salesforce.com/docs/atlas.en-us.264.0.industries_reference.meta/industries_reference/sforce_api_associated_objects_feed.htm): Feed tracking is available for the object.
- [ContactContactRelationHistory](https://developer.salesforce.com/docs/atlas.en-us.264.0.industries_reference.meta/industries_reference/sforce_api_associated_objects_history.htm): History is available for tracked fields of the object.
- [ContactContactRelationOwnerSharingRule](https://developer.salesforce.com/docs/atlas.en-us.264.0.industries_reference.meta/industries_reference/sforce_api_associated_objects_ownersharingrule.htm): Sharing rules are available for the object.
- [ContactContactRelationShare](https://developer.salesforce.com/docs/atlas.en-us.264.0.industries_reference.meta/industries_reference/sforce_api_associated_objects_share.htm): Sharing is available for the object.