PartyRoleRelation

Represents the role that each of two related parties plays in their relationship, such as the relationship between two accounts or two contacts. This object is available in API version 67.0 and later.

Where possible, we changed noninclusive terms to align with our company value of Equality. We maintained certain terms to avoid any effect on customer implementations. 

Important

Supported Calls 

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

Special Access Rules 

This object is available if Relationship Groups is enabled in your org.

Fields 

LastReferencedDate 

  • Type: dateTime
  • Properties: Filter, Nillable, Sort
  • Description: The timestamp for when the current user last viewed a record related to this record.

LastViewedDate 

  • Type: dateTime
  • Properties: Filter, Nillable, Sort
  • Description: The timestamp for when the current user last viewed this record. If this value is null, it’s possible that this record was referenced (LastReferencedDate) and not viewed.

Name 

  • Type: string
  • Properties: Create, Filter, Group, idLookup, Sort, Update
  • Description: The name of the party role relation.

OwnerId 

  • Type: reference

  • Properties: Create, Defaulted on create, Filter, Group, Sort, Update

  • Description: The ID of the record owner.

    This field is a polymorphic relationship field.

  • Relationship Name: Owner

  • Refers To: Group, User

RelatedInverseRecordId 

  • Type: reference

  • Properties: Create, Filter, Group, Nillable, Sort, Update

  • Description: The inverse party role relation associated with this record. This field is unique in your org.

    This field is a relationship field.

  • Relationship Name: RelatedInverseRecord

  • Refers To: PartyRoleRelation

RelatedRoleName 

  • Type: string
  • Properties: Create, Filter, Group, Sort, Update
  • Description: The name of the role of the related party in the relationship.

RelationshipObjectName 

  • Type: picklist

  • Properties: Create, Defaulted on create, Filter, Group, Restricted picklist, Sort, Update

  • Description: Specifies the type of relationship between the parties.

  • Default value: Account_Account_Relationship

  • Possible values:

    • 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 of the party in the relationship.

ShouldCreaInversRoleAuto 

  • Type: boolean
  • Properties: Create, Defaulted on create, Filter, Group, Sort
  • Description: Specifies whether the inverse role relationship is created automatically (true) or not (false).
  • Default value: false