---
schema_version: "1"
id: 4132435773327123d48806a88e9e747b657c96563154b2896988da888fb219d7
title: PartyRoleRelation
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/automotive_cloud/sforce_api_objects_partyrolerelation.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.automotive_cloud.meta/automotive_cloud/sforce_api_objects_partyrolerelation.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 01e7cdadd8d7b2631f822826084eedf5f69f506ccd434f4754118a451a22e9a0
description: Represents information about the type of relationship between the participants in a group or household. This object is available in API version 58.0 and later.
---
# PartyRoleRelation

Represents information about the type of relationship between the participants in a group or household. This object is available in API version 58.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

### 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**: Create, Filter, Group, idLookup, Sort, Update
- **Description**: Name of the party role 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

### RelatedInverseRecordId

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

### RelatedRoleName

- **Type**: string
- **Properties**: Create, Filter, Group, Sort, Update
- **Description**: The role that's related to another role in the relationship.

### RelationshipObjectName

- **Type**: picklist
- **Properties**: Create, Defaulted on create, Filter, Group, Restricted picklist, Sort, Update
- **Description**: The object that's associated with the relationship. Possible values are: The default value is Account\_Account\_Relationship.

- Account\_Account\_Relationship—Account Account Relationship
- Contact\_Contact\_Relationship—Contact Contact Relationship

### RoleName

- **Type**: string
- **Properties**: Create, Filter, Group, Sort, Update
- **Description**: The name of the role in the relationship.

### ShouldCreaInversRoleAuto

- **Type**: boolean
- **Properties**: Create, Defaulted on create, Filter, Group, Sort
- **Description**: Indicates whether a role record should be created automatically for the relationship (true) or not (false). The default value is false.

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

- [PartyRoleRelationChangeEvent](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.
- [PartyRoleRelationFeed](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.
- [PartyRoleRelationHistory](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.
- [PartyRoleRelationOwnerSharingRule](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.
- [PartyRoleRelationShare](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.